summaryrefslogtreecommitdiffstats
path: root/daemon/find.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/find.c')
-rw-r--r--daemon/find.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/daemon/find.c b/daemon/find.c
index 014712e4..833a391d 100644
--- a/daemon/find.c
+++ b/daemon/find.c
@@ -31,9 +31,10 @@
#include "actions.h"
static int
-input_to_nul (FILE *fp, char *buf, int maxlen)
+input_to_nul (FILE *fp, char *buf, size_t maxlen)
{
- int i = 0, c;
+ size_t i = 0;
+ int c;
while (i < maxlen) {
c = fgetc (fp);
@@ -52,7 +53,9 @@ char **
do_find (const char *dir)
{
struct stat statbuf;
- int r, len, sysrootdirlen;
+ int r;
+ size_t sysrootdirlen;
+ size_t len;
char *cmd;
FILE *fp;
DECLARE_STRINGSBUF (ret);