diff options
author | Swen Schillig <swen@linux.ibm.com> | 2019-04-11 11:22:02 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-06-30 11:32:18 +0000 |
commit | f2997ad677dbbe96bd2ea73c7632e7e81876f1e8 (patch) | |
tree | bec59c44e4faf96a1c309f45509e4ab14f2b4e52 /lib/util/util.h | |
parent | 7fd0cd02b75782dc6e9a4755d3404e738a92e719 (diff) | |
download | samba-f2997ad677dbbe96bd2ea73c7632e7e81876f1e8.tar.gz |
lib: Prepare for strtoul_err(), strtoull_err() API change
In order to still be bisectable when changing the API for the wrappers
strtoul_err() and strtoull_err() some preparations need to be performed.
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Diffstat (limited to 'lib/util/util.h')
-rw-r--r-- | lib/util/util.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/util/util.h b/lib/util/util.h index 2ed036358d0..d65d8c9ff24 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -3,6 +3,7 @@ Utility functions for Samba Copyright (C) Andrew Tridgell 1992-1999 Copyright (C) Jelmer Vernooij 2005 + Copyright (C) Swen Schillig 2019 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,11 +30,15 @@ SMB_STR_ALLOW_NEGATIVE) unsigned long int -strtoul_err(const char *nptr, char **endptr, int base, int *err); +smb_strtoul(const char *nptr, char **endptr, int base, int *err, int flags); unsigned long long int -strtoull_err(const char *nptr, char **endptr, int base, int *err); +smb_strtoull(const char *nptr, char **endptr, int base, int *err, int flags); +#define strtoul_err(nptr, endptr, base, err) \ + smb_strtoul(nptr, endptr, base, err, SMB_STR_STANDARD) +#define strtoull_err(nptr, endptr, base, err) \ + smb_strtoull(nptr, endptr, base, err, SMB_STR_STANDARD) /** * Write dump of binary data to a callback |