From 9581b82e394de41d36d060987c67d4de7999ab80 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 28 Feb 2014 09:35:56 +0100 Subject: [PATCH] libsmb: Bump WARNS to 2 and fix a warning. --- contrib/smbfs/lib/smb/rcfile.c | 2 +- lib/libsmb/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/smbfs/lib/smb/rcfile.c b/contrib/smbfs/lib/smb/rcfile.c index 79f6bd75a0..3a03e5c526 100644 --- a/contrib/smbfs/lib/smb/rcfile.c +++ b/contrib/smbfs/lib/smb/rcfile.c @@ -344,7 +344,7 @@ rc_getstring(struct rcfile *rcp, const char *section, const char *key, if (error) return error; if (strlen(value) >= maxlen) { - warnx("line too long for key '%s' in section '%s', max = %d\n", key, section, maxlen); + warnx("line too long for key '%s' in section '%s', max = %zu\n", key, section, maxlen); return EINVAL; } strcpy(dest, value); diff --git a/lib/libsmb/Makefile b/lib/libsmb/Makefile index 9566998b97..ca7bc77fb1 100644 --- a/lib/libsmb/Makefile +++ b/lib/libsmb/Makefile @@ -2,7 +2,7 @@ LIB= smb -WARNS?= 1 +WARNS?= 2 SHLIB_MAJOR= 2 -- 2.41.0