diff options
author | Karel Zak | 2019-01-11 12:15:00 +0100 |
---|---|---|
committer | Karel Zak | 2019-01-11 12:15:22 +0100 |
commit | 623427456eb632bb0b041b5fe430f70d2d3ce232 (patch) | |
tree | 34810fcaef904724f3f812688edf9fecc72befc7 /login-utils/logindefs.c | |
parent | fstrim: check for read-only devices on -a/-A (diff) | |
download | kernel-qcow2-util-linux-623427456eb632bb0b041b5fe430f70d2d3ce232.tar.gz kernel-qcow2-util-linux-623427456eb632bb0b041b5fe430f70d2d3ce232.tar.xz kernel-qcow2-util-linux-623427456eb632bb0b041b5fe430f70d2d3ce232.zip |
login-utils/logindefs: clenaup API
The default value should be unsigned if the result is also unsigned...
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/logindefs.c')
-rw-r--r-- | login-utils/logindefs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/logindefs.c b/login-utils/logindefs.c index ebf1a9f3a..07a977660 100644 --- a/login-utils/logindefs.c +++ b/login-utils/logindefs.c @@ -196,7 +196,7 @@ int getlogindefs_bool(const char *name, int dflt) return ptr && ptr->value ? (strcasecmp(ptr->value, "yes") == 0) : dflt; } -unsigned long getlogindefs_num(const char *name, long dflt) +unsigned long getlogindefs_num(const char *name, unsigned long dflt) { struct item *ptr = search(name); char *end = NULL; |