diff --git a/dist/smbfs/lib/smb/rcfile.c b/dist/smbfs/lib/smb/rcfile.c index e4a8971287ec..12708f6bad05 100644 --- a/dist/smbfs/lib/smb/rcfile.c +++ b/dist/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 = %ld\n", key, section, (long)maxlen); + warnx("line too long for key '%s' in section '%s', max = %lu\n", key, section, (unsigned long)maxlen); return EINVAL; } strcpy(dest, value);