From 97fcef861a0eb276ab29bfc939ba1812b454e3f0 Mon Sep 17 00:00:00 2001 From: didg Date: Sun, 25 Oct 2009 12:06:28 +0000 Subject: [PATCH] use off_t rather than size_t for read/write_count, doesn't overflow at 4GB, yes moving more than 4GB of data over asp is a bad idea --- include/atalk/asp.h | 2 +- include/atalk/dsi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/atalk/asp.h b/include/atalk/asp.h index fcc40a1d..44b2388d 100644 --- a/include/atalk/asp.h +++ b/include/atalk/asp.h @@ -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 diff --git a/include/atalk/dsi.h b/include/atalk/dsi.h index 0c40f1f1..058b7d36 100644 --- a/include/atalk/dsi.h +++ b/include/atalk/dsi.h @@ -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; -- 2.39.2