]> arthur.barton.de Git - netatalk.git/commitdiff
use off_t rather than size_t for read/write_count, doesn't overflow at 4GB, yes movin...
authordidg <didg>
Sun, 25 Oct 2009 12:06:28 +0000 (12:06 +0000)
committerdidg <didg>
Sun, 25 Oct 2009 12:06:28 +0000 (12:06 +0000)
include/atalk/asp.h
include/atalk/dsi.h

index fcc40a1d635081a5fd4769cae7dda9d25067e121..44b2388d991773622868cec7aafc118b20d32ee1 100644 (file)
@@ -60,7 +60,7 @@ typedef struct ASP {
     char                cmdbuf[ASP_CMDMAXSIZ];
     char                data[ASP_DATAMAXSIZ];  
     size_t             cmdlen, datalen;
-    size_t             read_count, write_count;
+    off_t              read_count, write_count;
 } *ASP;
 
 #define ASPFL_SLS      1
index 0c40f1f17d38f5cb9d84ab6a2ab821c194b0d8d9..058b7d36329b2f182c0f568ab1de59eaeac51c1e 100644 (file)
@@ -72,7 +72,7 @@ typedef struct DSI {
   u_int8_t  commands[DSI_CMDSIZ], data[DSI_DATASIZ];
   size_t statuslen;
   size_t datalen, cmdlen;
-  size_t read_count, write_count;
+  off_t  read_count, write_count;
   int asleep; /* client won't reply AFP 0x7a ? */
   /* inited = initialized?, child = a child?, noreply = send reply? */
   char child, inited, noreply;