lib:util: Fix size types in fgets_slash()
[metze/samba/wip.git] / lib / util / util_file.c
index 499e8c466939bec9a56af19997f4986ccc45928d..bf2f3e1a27f42135f1251a28975dbdc45cba5597 100644 (file)
@@ -79,10 +79,10 @@ _PUBLIC_ char *afdgets(int fd, TALLOC_CTX *mem_ctx, size_t hint)
        return data;
 }
 
-char *fgets_slash(TALLOC_CTX *mem_ctx, char *s2, int maxlen, FILE *f)
+char *fgets_slash(TALLOC_CTX *mem_ctx, char *s2, size_t maxlen, FILE *f)
 {
        char *s = s2;
-       int len = 0;
+       size_t len = 0;
        int c;
        bool start_of_line = true;