File libmal-pilot-link-0.12.0-api.diff of Package libmal
--- libmal.c
+++ libmal.c
@@ -509,7 +509,7 @@
AGBufferReader * r = NULL;
rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer,
- &id, &bufferSize, &attr, &cat);
+ &id, &attr, &cat);
if (rc < 0) {
#ifdef _DEBUG
@@ -542,7 +542,7 @@
AGBufferReader * r = NULL;
rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer,
- &id, &bufferSize, &attr, &cat);
+ &id, &attr, &cat);
if (rc < 0) {
#ifdef _DEBUG
@@ -598,7 +598,7 @@
result = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer
,
- &id, &bufferSize, &attr, &cat);
+ &id, &attr, &cat);
if (result < 0)
id = 0;
@@ -883,11 +883,11 @@
result = (modonly) ?
dlp_ReadNextModifiedRec (sd, pInfo->pilot_rHandle, pInfo->pilot_buffer,
&pInfo->id, &idx,
- &size, &att, &cat)
+ &att, &cat)
:
dlp_ReadRecordByIndex(sd, pInfo->pilot_rHandle, idx,
pInfo->pilot_buffer, &pInfo->id,
- &size, &att, &cat);
+ &att, &cat);
if (result < 0) {
closeDatabase(pInfo);
@@ -1183,7 +1183,6 @@
/*----------------------------------------------------------------------------*/
void Connect(PalmSyncInfo *pi)
{
- struct pi_sockaddr addr;
int ret;
if (sd != 0)
@@ -1195,20 +1194,7 @@
signal(SIGSEGV, SigHandler);
#endif
-#ifdef PILOT_LINK_0_9
- addr.pi_family = PI_AF_SLP;
- if (!(sd = pi_socket(PI_AF_SLP, PI_SOCK_STREAM, PI_PF_PADP))) {
-#else
- addr.pi_family = PI_AF_PILOT;
- if (!(sd = pi_socket(PI_AF_PILOT, PI_SOCK_STREAM, PI_PF_PADP))) {
-#endif
- perror("pi_socket");
- exit(1);
- }
-
- strcpy(addr.pi_device, device);
-
- ret = pi_bind(sd, (struct sockaddr*)&addr, sizeof(addr));
+ ret = pi_bind(sd, device);
if(ret == -1) {
/*fprintf(stderr, "Unable to bind to port '%s'.\n", device);*/
(*printerror) ("Unable to bind to port '%s'.\n", device);