]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/atp/atp_rresp.c
Remove bdb env on exit
[netatalk.git] / libatalk / atp / atp_rresp.c
index 5f96ced6ae9ac4dc93901bb22e4dcad06f65ef9c..ac0a146cb628665f49ea872a04e2453e567a5895 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: atp_rresp.c,v 1.4 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $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.
 #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" );
@@ -81,7 +82,7 @@ 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 );