Hi.

Long due update!
Please test using latest pilot-link port sent to ports@ a couple of days ago (version 0.12.1).
Thanks!

--
Antoine
diff -ruN --exclude=CVS /usr/ports/comms/malsync/Makefile malsync/Makefile
--- /usr/ports/comms/malsync/Makefile   Mon Sep 18 19:07:31 2006
+++ malsync/Makefile    Tue Sep 19 18:22:20 2006
@@ -2,11 +2,15 @@
 
 COMMENT=               "command line tool to synchronize Palm pilot to AvantGo"
 
-VERSION=               2.1.1
+VERSION=               2.2.0
 DISTNAME=              malsync_${VERSION}.src
-PKGNAME=               malsync-${VERSION}p0
+PKGNAME=               malsync-${VERSION}
 CATEGORIES=             comms palm
 
+MASTER_SITES=  http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/distfiles/ \
+               http://gentoo.oregonstate.edu/distfiles/ \
+               ftp://ftp.fr.freebsd.org/pub/FreeBSD/distfiles/
+
 MAINTAINER=            Antoine Jacoutot <[EMAIL PROTECTED]>
 
 # MPL
@@ -16,7 +20,7 @@
 PERMIT_DISTFILES_FTP=  Yes
 WANTLIB=               c
 
-LIB_DEPENDS=           pisock.>=8::comms/pilot-link
+LIB_DEPENDS=           pisock.>=9::comms/pilot-link
 
 USE_GMAKE=             Yes
 WRKSRC=                        ${WRKDIR}/malsync
diff -ruN --exclude=CVS /usr/ports/comms/malsync/distinfo malsync/distinfo
--- /usr/ports/comms/malsync/distinfo   Wed Jan  5 16:58:29 2005
+++ malsync/distinfo    Tue Sep 19 16:45:37 2006
@@ -1,4 +1,4 @@
-MD5 (malsync_2.1.1.src.tar.gz) = b6342df8559a53a51cf3294ac06ed992
-RMD160 (malsync_2.1.1.src.tar.gz) = 59f17609ec30fa156a604e476852f6bed393f9f3
-SHA1 (malsync_2.1.1.src.tar.gz) = c2746f25cd7a10409c342f34675dd072b6ea1cdd
-SIZE (malsync_2.1.1.src.tar.gz) = 171745
+MD5 (malsync_2.2.0.src.tar.gz) = d1c41526b91bb38c21a4ced01d26328c
+RMD160 (malsync_2.2.0.src.tar.gz) = 14be8ba01c20969eed8d7b718284880e0bbd424f
+SHA1 (malsync_2.2.0.src.tar.gz) = c8400205b3f8770c105c9f62afdba20c94b85c26
+SIZE (malsync_2.2.0.src.tar.gz) = 173851
diff -ruN --exclude=CVS /usr/ports/comms/malsync/patches/patch-Makefile 
malsync/patches/patch-Makefile
--- /usr/ports/comms/malsync/patches/patch-Makefile     Wed Dec 29 05:57:15 2004
+++ malsync/patches/patch-Makefile      Tue Sep 19 16:48:13 2006
@@ -1,6 +1,6 @@
-$OpenBSD: patch-Makefile,v 1.3 2004/12/29 04:57:15 pvalchev Exp $
---- Makefile.orig      Sun Nov 17 11:52:53 2002
-+++ Makefile   Tue Dec 28 21:48:50 2004
+$OpenBSD$
+--- Makefile.orig      Tue Sep 19 16:46:31 2006
++++ Makefile   Tue Sep 19 16:48:06 2006
 @@ -1,5 +1,7 @@
  TARGET = malsync
  
@@ -13,7 +13,7 @@
  endif
  
  TREETOP = .
--PILOT_LINK_DIR = $(TREETOP)/pilot-link-0.11.5
+-PILOT_LINK_DIR = $(TREETOP)/pilot-link-0.11.7
 +PILOT_LINK_DIR = $(PREFIX)
  
 -CFLAGS = -Wall -g -DMALSYNC -I$(TREETOP)/mal/common \
@@ -26,7 +26,7 @@
  
  $(TARGET): $(OBJS)
 -      $(CC) $(DYNLINK) $(CFLAGS) -o $@ $(OBJS) \
--          -L${PILOT_LINK_DIR}/libpisock/.libs -lpisock $(LINKLIBS)
+-          ${PILOT_LINK_DIR}/libpisock/.libs/libpisock.a $(LINKLIBS)
 +      $(CC) $(DYNLINK) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) \
 +          -L${PILOT_LINK_DIR}/lib -lpisock $(LINKLIBS)
  clean:
diff -ruN --exclude=CVS 
/usr/ports/comms/malsync/patches/patch-mal_client_unix_MAL31DBConfig_c 
malsync/patches/patch-mal_client_unix_MAL31DBConfig_c
--- /usr/ports/comms/malsync/patches/patch-mal_client_unix_MAL31DBConfig_c      
Thu Jan  1 01:00:00 1970
+++ malsync/patches/patch-mal_client_unix_MAL31DBConfig_c       Tue Sep 19 
18:04:53 2006
@@ -0,0 +1,15 @@
+$OpenBSD$
+--- mal/client/unix/MAL31DBConfig.c.orig       Tue Sep 19 18:04:26 2006
++++ mal/client/unix/MAL31DBConfig.c    Tue Sep 19 18:04:45 2006
+@@ -20,11 +20,7 @@
+  */
+ 
+ #include <MAL31DBConfig.h>
+-#ifdef DARWIN
+ #include <stdlib.h>
+-#else
+-#include <malloc.h>
+-#endif
+ 
+ 
/*---------------------------------------------------------------------------*/
+ void
diff -ruN --exclude=CVS /usr/ports/comms/malsync/patches/patch-malsync_c 
malsync/patches/patch-malsync_c
--- /usr/ports/comms/malsync/patches/patch-malsync_c    Thu Jan  1 01:00:00 1970
+++ malsync/patches/patch-malsync_c     Tue Sep 19 18:14:58 2006
@@ -0,0 +1,246 @@
+$OpenBSD$
+--- malsync.c.orig     Wed Jul 23 22:02:30 2003
++++ malsync.c  Tue Sep 19 18:14:16 2006
+@@ -100,8 +100,7 @@ typedef struct {
+     int pilot_rHandle;
+     int pilot_RecIndex;
+     recordid_t id;
+-    uint8  *pilot_buffer;
+-    int pilot_buffer_size;
++    pi_buffer_t *pi_buf;
+     
+     /* Secure Network Library Stuff */
+     AGBool          hasseclib;
+@@ -266,8 +265,8 @@ syncInfoFree(PalmSyncInfo * pInfo)
+         if (NULL != pInfo->userConfig)
+             AGUserConfigFree(pInfo->userConfig);
+ 
+-        if (NULL != pInfo->pilot_buffer)
+-            free(pInfo->pilot_buffer);
++        if (NULL != pInfo->pi_buf)
++            pi_buffer_free (pInfo->pi_buf);
+ 
+         if (NULL != pInfo->commandProcessor)
+             AGCommandProcessorFree(pInfo->commandProcessor);
+@@ -290,9 +289,8 @@ syncInfoNew()
+ 
+         bzero(pInfo, sizeof(PalmSyncInfo));
+ 
+-        pInfo->pilot_buffer_size    = pbs;
+-        pInfo->pilot_buffer         = (uint8 *)malloc(pbs);
+-        if (NULL == pInfo->pilot_buffer)
++        pInfo->pi_buf = pi_buffer_new (pbs);
++        if (NULL == pInfo->pi_buf)
+             goto fail;
+ 
+         /* Allocate the platform calls record. */
+@@ -341,8 +339,7 @@ int16 readInt16(uint8 * p)
+ 
/*---------------------------------------------------------------------------*/
+ static void 
+ readAndUseDeviceInfoDatabase(AGDeviceInfo * devInfo,
+-                             uint8 *dev_db_info_buffer,
+-                             uint32 dev_db_info_buffer_size)
++                             pi_buffer_t *pi_buf)
+ {
+     int database_id = 0;
+     long result;
+@@ -373,13 +370,13 @@ readAndUseDeviceInfoDatabase(AGDeviceInf
+         int rc;
+ 
+         rc = dlp_ReadRecordByIndex(sd, database_id, 0, 
+-                                   (void *)dev_db_info_buffer, 
+-                                   &id, &dev_db_info_buffer_size, 
++                                   pi_buf, 
++                                   &id,
+                                    &attr, &cat);
+     
+ 
+         if (rc >= 0) {
+-            uint8 *p = dev_db_info_buffer;
++            uint8 *p = pi_buf->data;
+             int16 dev_db_info_version = readInt16(p);
+             p+=sizeof(int16);
+             devInfo->colorDepth = readInt32(p);
+@@ -472,8 +469,7 @@ readDeviceInfo(PalmSyncInfo * pInfo)
+     }
+ 
+     readAndUseDeviceInfoDatabase(devInfo,
+-                                 pInfo->pilot_buffer,
+-                                 pInfo->pilot_buffer_size);
++                                 pInfo->pi_buf);
+ 
+     /* Override the color depth if the user wants low res images. */
+     if (lowres) {
+@@ -663,31 +659,36 @@ static int32 
+ readDeviceUserConfig32(int userConfigDBHandle, AGUserConfig 
**deviceUserConfig)
+ {
+     recordid_t id;
+-    int bufferSize = BUFFERSIZE;
++    pi_buffer_t *pi_buf;
+     int attr = 0;
+     int cat  = 0;
+     int rc;
+-    uint8 buffer[BUFFERSIZE];
+     AGBufferReader * r = NULL;
+ 
+-    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer, 
+-                               &id, &bufferSize, &attr, &cat);
++    pi_buf = pi_buffer_new (BUFFERSIZE);
++
++    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, pi_buf, 
++                               &id, &attr, &cat);
+     
+     if (rc < 0) {
+         if (verbose)
+             printf("readDeviceUserConfig: dlp_ReadRecordByIndex , err = %d\n",
+                    rc);
++        pi_buffer_free (pi_buf);
+         return 0;
+     }
+     
+-    r = AGBufferReaderNew(buffer);
++    r = AGBufferReaderNew(pi_buf->data);
+     if (r) {
+         *deviceUserConfig = AGUserConfigNew();
+         AGUserConfigReadData(*deviceUserConfig, (AGReader*)r);
+         AGBufferReaderFree(r);
++        pi_buffer_free (pi_buf);
+         return id;
+-    } else
++    } else {
++        pi_buffer_free (pi_buf);
+         return 0;
++    }
+ }
+ #define BUFFERSIZE 0xFFFF
+ 
/*---------------------------------------------------------------------------*/
+@@ -695,31 +696,36 @@ static int32 readDeviceUserConfig31(int 
+                                     AGUserConfig **deviceUserConfig)
+ {
+     recordid_t id;
+-    int bufferSize = BUFFERSIZE;
+     int attr = 0;
+     int cat  = 0;
+     int rc;
+-    uint8 buffer[BUFFERSIZE];
++    pi_buffer_t *pi_buf;
+     AGBufferReader * r = NULL;
+ 
+-    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer, 
+-                               &id, &bufferSize, &attr, &cat);
++    pi_buf = pi_buffer_new (BUFFERSIZE);
++
++    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, pi_buf, 
++                               &id, &attr, &cat);
+     
+     if (rc < 0) {
+         if (verbose)
+             printf("readDeviceUserConfig: dlp_ReadRecordByIndex , err = %d\n",
+                    rc);
++        pi_buffer_free (pi_buf);
+         return 0;
+     }
+     
+-    r = AGBufferReaderNew(buffer);
++    r = AGBufferReaderNew(pi_buf->data);
+     if (r) {
+         *deviceUserConfig = AGUserConfigNew();
+         MAL31ReadUserData(*deviceUserConfig, (AGReader*)r);
+         AGBufferReaderFree(r);
++        pi_buffer_free (pi_buf);
+         return id;
+-    } else
++    } else {
++        pi_buffer_free (pi_buf);
+         return 0;
++    }
+ }
+ 
/*---------------------------------------------------------------------------*/
+ static int32 readDeviceUserConfig(int userConfigDBHandle,
+@@ -740,23 +746,25 @@ static void writeDeviceUserConfig(int us
+ {
+ 
+     recordid_t id;
+-    int bufferSize = BUFFERSIZE;
+     int attr = 0;
+     int cat  = 0;
+-    uint8 buffer[BUFFERSIZE];
+     AGBufferWriter * w = NULL;
++
+     w = AGBufferWriterNew(0);
+     if (w) {
+         long result;
++        pi_buffer_t *pi_buf;
+         
++        pi_buf = pi_buffer_new (BUFFERSIZE);
++        
+         if (threeone) {
+             MAL31WriteUserData(deviceUserConfig, (AGWriter*)w);
+         } else {
+             AGUserConfigWriteData(deviceUserConfig, (AGWriter*)w);
+         }
+ 
+-        result = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void 
*)buffer, 
+-                                   &id, &bufferSize, &attr, &cat);
++        result = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, pi_buf, 
++                                   &id, &attr, &cat);
+         
+         if (result < 0)
+             id = 0;
+@@ -766,7 +774,7 @@ static void writeDeviceUserConfig(int us
+                                   AGBufferWriterGetBufferSize(w), 
+                                   &id);
+         AGBufferWriterFree(w);
+-
++        pi_buffer_free (pi_buf);
+     }
+ }
+ 
+@@ -1044,17 +1052,17 @@ getRecordBase(PalmSyncInfo * pInfo, AGBo
+     int32 result;
+     int att = 0;
+     int cat = 0;
+-    int size = pInfo->pilot_buffer_size;
++    //int size = pInfo->pi_buf->allocated;
+     int idx   = pInfo->pilot_RecIndex++;
+ 
+     result = (modonly) ?
+-        dlp_ReadNextModifiedRec (sd, pInfo->pilot_rHandle, 
pInfo->pilot_buffer,
++        dlp_ReadNextModifiedRec (sd, pInfo->pilot_rHandle, pInfo->pi_buf,
+                                  &pInfo->id, &idx,
+-                                 &size, &att, &cat)
++                                 &att, &cat)
+         :
+         dlp_ReadRecordByIndex(sd, pInfo->pilot_rHandle, idx,
+-                              pInfo->pilot_buffer, &pInfo->id,
+-                              &size, &att, &cat);
++                              pInfo->pi_buf, &pInfo->id,
++                              &att, &cat);
+     
+     if (result < 0) {
+         closeDatabase(pInfo);
+@@ -1070,7 +1078,7 @@ getRecordBase(PalmSyncInfo * pInfo, AGBo
+     }
+     pInfo->record = AGRecordInit(pInfo->record, pInfo->id,
+                                  AGPalmPilotAttribsToMALMod((uint8)att),
+-                                 size, pInfo->pilot_buffer, 0, NULL);
++                                 pInfo->pi_buf->used, pInfo->pi_buf->data, 0, 
NULL);
+ 
+     *record = pInfo->record;
+     return AGCLIENT_CONTINUE;
+@@ -1363,7 +1371,6 @@ main(int argc, char *argv[])
+ static void 
+ Connect(PalmSyncInfo *pi) 
+ {
+-    struct pi_sockaddr addr;
+     int ret;
+     
+     if (sd != 0)
+@@ -1609,7 +1616,6 @@ fill_in_versioninfo(int sd, AGExpansionV
+                                    0, 
+                                    (void *)version_buffer, 
+                                    &id, 
+-                                   &version_buffer_size, 
+                                    &attr, 
+                                    &cat);
+ 
diff -ruN --exclude=CVS /usr/ports/comms/malsync/patches/patch-malsync_c.orig 
malsync/patches/patch-malsync_c.orig
--- /usr/ports/comms/malsync/patches/patch-malsync_c.orig       Thu Jan  1 
01:00:00 1970
+++ malsync/patches/patch-malsync_c.orig        Tue Sep 19 18:12:42 2006
@@ -0,0 +1,238 @@
+$OpenBSD$
+--- malsync.c.orig     Wed Jul 23 22:02:30 2003
++++ malsync.c  Tue Sep 19 18:12:32 2006
+@@ -100,8 +100,7 @@ typedef struct {
+     int pilot_rHandle;
+     int pilot_RecIndex;
+     recordid_t id;
+-    uint8  *pilot_buffer;
+-    int pilot_buffer_size;
++    pi_buffer_t *pi_buf;
+     
+     /* Secure Network Library Stuff */
+     AGBool          hasseclib;
+@@ -266,8 +265,8 @@ syncInfoFree(PalmSyncInfo * pInfo)
+         if (NULL != pInfo->userConfig)
+             AGUserConfigFree(pInfo->userConfig);
+ 
+-        if (NULL != pInfo->pilot_buffer)
+-            free(pInfo->pilot_buffer);
++        if (NULL != pInfo->pi_buf)
++            pi_buffer_free (pInfo->pi_buf);
+ 
+         if (NULL != pInfo->commandProcessor)
+             AGCommandProcessorFree(pInfo->commandProcessor);
+@@ -290,9 +289,8 @@ syncInfoNew()
+ 
+         bzero(pInfo, sizeof(PalmSyncInfo));
+ 
+-        pInfo->pilot_buffer_size    = pbs;
+-        pInfo->pilot_buffer         = (uint8 *)malloc(pbs);
+-        if (NULL == pInfo->pilot_buffer)
++        pInfo->pi_buf = pi_buffer_new (pbs);
++        if (NULL == pInfo->pi_buf)
+             goto fail;
+ 
+         /* Allocate the platform calls record. */
+@@ -341,8 +339,7 @@ int16 readInt16(uint8 * p)
+ 
/*---------------------------------------------------------------------------*/
+ static void 
+ readAndUseDeviceInfoDatabase(AGDeviceInfo * devInfo,
+-                             uint8 *dev_db_info_buffer,
+-                             uint32 dev_db_info_buffer_size)
++                             pi_buffer_t *pi_buf)
+ {
+     int database_id = 0;
+     long result;
+@@ -373,13 +370,13 @@ readAndUseDeviceInfoDatabase(AGDeviceInf
+         int rc;
+ 
+         rc = dlp_ReadRecordByIndex(sd, database_id, 0, 
+-                                   (void *)dev_db_info_buffer, 
+-                                   &id, &dev_db_info_buffer_size, 
++                                   pi_buf, 
++                                   &id,
+                                    &attr, &cat);
+     
+ 
+         if (rc >= 0) {
+-            uint8 *p = dev_db_info_buffer;
++            uint8 *p = pi_buf->data;
+             int16 dev_db_info_version = readInt16(p);
+             p+=sizeof(int16);
+             devInfo->colorDepth = readInt32(p);
+@@ -472,8 +469,7 @@ readDeviceInfo(PalmSyncInfo * pInfo)
+     }
+ 
+     readAndUseDeviceInfoDatabase(devInfo,
+-                                 pInfo->pilot_buffer,
+-                                 pInfo->pilot_buffer_size);
++                                 pInfo->pi_buf);
+ 
+     /* Override the color depth if the user wants low res images. */
+     if (lowres) {
+@@ -663,31 +659,36 @@ static int32 
+ readDeviceUserConfig32(int userConfigDBHandle, AGUserConfig 
**deviceUserConfig)
+ {
+     recordid_t id;
+-    int bufferSize = BUFFERSIZE;
++    pi_buffer_t *pi_buf;
+     int attr = 0;
+     int cat  = 0;
+     int rc;
+-    uint8 buffer[BUFFERSIZE];
+     AGBufferReader * r = NULL;
+ 
+-    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer, 
+-                               &id, &bufferSize, &attr, &cat);
++    pi_buf = pi_buffer_new (BUFFERSIZE);
++
++    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, pi_buf, 
++                               &id, &attr, &cat);
+     
+     if (rc < 0) {
+         if (verbose)
+             printf("readDeviceUserConfig: dlp_ReadRecordByIndex , err = %d\n",
+                    rc);
++        pi_buffer_free (pi_buf);
+         return 0;
+     }
+     
+-    r = AGBufferReaderNew(buffer);
++    r = AGBufferReaderNew(pi_buf->data);
+     if (r) {
+         *deviceUserConfig = AGUserConfigNew();
+         AGUserConfigReadData(*deviceUserConfig, (AGReader*)r);
+         AGBufferReaderFree(r);
++        pi_buffer_free (pi_buf);
+         return id;
+-    } else
++    } else {
++        pi_buffer_free (pi_buf);
+         return 0;
++    }
+ }
+ #define BUFFERSIZE 0xFFFF
+ 
/*---------------------------------------------------------------------------*/
+@@ -695,31 +696,36 @@ static int32 readDeviceUserConfig31(int 
+                                     AGUserConfig **deviceUserConfig)
+ {
+     recordid_t id;
+-    int bufferSize = BUFFERSIZE;
+     int attr = 0;
+     int cat  = 0;
+     int rc;
+-    uint8 buffer[BUFFERSIZE];
++    pi_buffer_t *pi_buf;
+     AGBufferReader * r = NULL;
+ 
+-    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void *)buffer, 
+-                               &id, &bufferSize, &attr, &cat);
++    pi_buf = pi_buffer_new (BUFFERSIZE);
++
++    rc = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, pi_buf, 
++                               &id, &attr, &cat);
+     
+     if (rc < 0) {
+         if (verbose)
+             printf("readDeviceUserConfig: dlp_ReadRecordByIndex , err = %d\n",
+                    rc);
++        pi_buffer_free (pi_buf);
+         return 0;
+     }
+     
+-    r = AGBufferReaderNew(buffer);
++    r = AGBufferReaderNew(pi_buf->data);
+     if (r) {
+         *deviceUserConfig = AGUserConfigNew();
+         MAL31ReadUserData(*deviceUserConfig, (AGReader*)r);
+         AGBufferReaderFree(r);
++        pi_buffer_free (pi_buf);
+         return id;
+-    } else
++    } else {
++        pi_buffer_free (pi_buf);
+         return 0;
++    }
+ }
+ 
/*---------------------------------------------------------------------------*/
+ static int32 readDeviceUserConfig(int userConfigDBHandle,
+@@ -740,23 +746,25 @@ static void writeDeviceUserConfig(int us
+ {
+ 
+     recordid_t id;
+-    int bufferSize = BUFFERSIZE;
+     int attr = 0;
+     int cat  = 0;
+-    uint8 buffer[BUFFERSIZE];
+     AGBufferWriter * w = NULL;
++
+     w = AGBufferWriterNew(0);
+     if (w) {
+         long result;
++        pi_buffer_t *pi_buf;
+         
++        pi_buf = pi_buffer_new (BUFFERSIZE);
++        
+         if (threeone) {
+             MAL31WriteUserData(deviceUserConfig, (AGWriter*)w);
+         } else {
+             AGUserConfigWriteData(deviceUserConfig, (AGWriter*)w);
+         }
+ 
+-        result = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, (void 
*)buffer, 
+-                                   &id, &bufferSize, &attr, &cat);
++        result = dlp_ReadRecordByIndex(sd, userConfigDBHandle, 0, pi_buf, 
++                                   &id, &attr, &cat);
+         
+         if (result < 0)
+             id = 0;
+@@ -766,7 +774,7 @@ static void writeDeviceUserConfig(int us
+                                   AGBufferWriterGetBufferSize(w), 
+                                   &id);
+         AGBufferWriterFree(w);
+-
++        pi_buffer_free (pi_buf);
+     }
+ }
+ 
+@@ -1044,17 +1052,17 @@ getRecordBase(PalmSyncInfo * pInfo, AGBo
+     int32 result;
+     int att = 0;
+     int cat = 0;
+-    int size = pInfo->pilot_buffer_size;
++    //int size = pInfo->pi_buf->allocated;
+     int idx   = pInfo->pilot_RecIndex++;
+ 
+     result = (modonly) ?
+-        dlp_ReadNextModifiedRec (sd, pInfo->pilot_rHandle, 
pInfo->pilot_buffer,
++        dlp_ReadNextModifiedRec (sd, pInfo->pilot_rHandle, pInfo->pi_buf,
+                                  &pInfo->id, &idx,
+-                                 &size, &att, &cat)
++                                 &att, &cat)
+         :
+         dlp_ReadRecordByIndex(sd, pInfo->pilot_rHandle, idx,
+-                              pInfo->pilot_buffer, &pInfo->id,
+-                              &size, &att, &cat);
++                              pInfo->pi_buf, &pInfo->id,
++                              &att, &cat);
+     
+     if (result < 0) {
+         closeDatabase(pInfo);
+@@ -1070,7 +1078,7 @@ getRecordBase(PalmSyncInfo * pInfo, AGBo
+     }
+     pInfo->record = AGRecordInit(pInfo->record, pInfo->id,
+                                  AGPalmPilotAttribsToMALMod((uint8)att),
+-                                 size, pInfo->pilot_buffer, 0, NULL);
++                                 pInfo->pi_buf->used, pInfo->pi_buf->data, 0, 
NULL);
+ 
+     *record = pInfo->record;
+     return AGCLIENT_CONTINUE;
+@@ -1363,7 +1371,6 @@ main(int argc, char *argv[])
+ static void 
+ Connect(PalmSyncInfo *pi) 
+ {
+-    struct pi_sockaddr addr;
+     int ret;
+     
+     if (sd != 0)

Reply via email to