summaryrefslogtreecommitdiff
path: root/mbox.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-04-07 12:27:40 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-04-07 12:27:40 +0500
commit178fb764cf7835f3e0090b1a970742678333f8af (patch)
treea4030b447955b9d6adf468147fb608cacb9ecd8d /mbox.c
parent82879323268fdd0d2eb08b5fd4f84407543466d9 (diff)
Fix clang warnings. offset is always long.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbox.c b/mbox.c
index 83b3d80..a77efd0 100644
--- a/mbox.c
+++ b/mbox.c
@@ -30,7 +30,7 @@
#include "pop3d.h"
static int init(struct mdrop *, size_t *, size_t *);
-static int retr(struct mdrop *, unsigned int, size_t *, size_t *);
+static int retr(struct mdrop *, unsigned int, size_t *, long *);
static int update(struct mdrop *);
struct m_backend m_backend_mbox = {
@@ -113,7 +113,7 @@ init(struct mdrop *m, size_t *nmsgs, size_t *sz)
}
static int
-retr(struct mdrop *m, unsigned int idx, size_t *nlines, size_t *offset)
+retr(struct mdrop *m, unsigned int idx, size_t *nlines, long *offset)
{
if (m->msgs_index[idx]->flags & F_DELE)
return (-1);