]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/atp/atp_rresp.c
Previous fix 9e4e07c1811edbaf3376ad6e238a1353b405002b resulted in the inability to...
[netatalk.git] / libatalk / atp / atp_rresp.c
index ee29f994937bc9484b1925a32d7ae3e20047297f..ac0a146cb628665f49ea872a04e2453e567a5895 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * $Id: atp_rresp.c,v 1.6 2009-10-13 22:55:37 didg Exp $
+ *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
  *
@@ -23,7 +25,7 @@
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
 
 #include <stdlib.h>
 #include <string.h>
 
 #ifdef EBUG
 #include <stdio.h>
-#endif
+#endif /* EBUG */
 
 #include "atp_internals.h"
 
 int
-atp_rresp( ah, atpb )
-    ATP                        ah;             /* open atp handle */
-    struct atp_block   *atpb;          /* parameter block */
+atp_rresp(
+    ATP                        ah,             /* open atp handle */
+    struct atp_block   *atpb)          /* parameter block */
 {
-    int                len, i, rc;
+    int                i, rc;
+    size_t     len;
 
 #ifdef EBUG
     atp_print_bufuse( ah, "atp_rresp" );
-#endif
+#endif /* EBUG */
     /* check parameters
     */
     if ( atpb->atp_rresiovcnt <= 0 || atpb->atp_rresiovcnt > 8 ) {
@@ -79,11 +82,11 @@ atp_rresp( ah, atpb )
            return( -1 );
        }
 #ifdef EBUG
-       fprintf( stderr, "atp_rresp copying %d bytes packet %d\n",
+       fprintf( stderr, "atp_rresp copying %ld bytes packet %d\n",
                len, i );
        bprint( (char *)ah->atph_resppkt[ i ]->atpbuf_info.atpbuf_data,
                len + ATP_HDRSIZE );
-#endif
+#endif /* EBUG */
        memcpy(atpb->atp_rresiov[ i ].iov_base,
               ah->atph_resppkt[ i ]->atpbuf_info.atpbuf_data + ATP_HDRSIZE,
               len );