[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldsync-hackers] patch: SPC & netsync
Hello All!
This is a lilttle patch to fix de SPC pipe use in netsync mode.
It's again 2.1.3 , but the bug is present in 2.2.2 too.
Francisco
diff -ur coldsync-2.1.3/src/spc.c coldsync-2.1.3-patched/src/spc.c
--- coldsync-2.1.3/src/spc.c Thu Mar 29 02:39:09 2001
+++ coldsync-2.1.3-patched-uid+inetd/src/spc.c Thu Oct 25 12:15:05 2001
@@ -107,7 +107,7 @@
if (pconn == NULL) /* Sanity check */
return -1;
- err = padp_write(pconn, inbuf, header->len);
+ err = (*pconn->dlp.write)(pconn, inbuf, header->len);
SYNC_TRACE(7)
fprintf(stderr,
"spc_send: padp_write returned %d\n",
@@ -125,7 +125,7 @@
return -1;
}
- err = padp_read(pconn, &padp_respbuf, &padp_resplen);
+ err = (*pconn->dlp.read)(pconn, &padp_respbuf, &padp_resplen);
SYNC_TRACE(7)
{
fprintf(stderr,