summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-14 01:59:36 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-14 01:59:36 +0200
commit4746f79d50d804b0e9d5d5cc0d4796dee54d052c (patch)
treec10c06cd3e9b10cc0a4ea964875b4cfa739a2e4c /source3/lib/util_str.c
parentabe443a65edf86892ce01c80804a4b644ec99433 (diff)
downloadsamba-4746f79d50d804b0e9d5d5cc0d4796dee54d052c.tar.gz
samba-4746f79d50d804b0e9d5d5cc0d4796dee54d052c.tar.bz2
samba-4746f79d50d804b0e9d5d5cc0d4796dee54d052c.zip
Use {u,}int64_t instead of SMB_BIG_{U,}INT.
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index b0a7cb072d..5d1893a85b 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -2279,10 +2279,10 @@ char *base64_encode_data_blob(TALLOC_CTX *mem_ctx, DATA_BLOB data)
}
/* read a SMB_BIG_UINT from a string */
-SMB_BIG_UINT STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr)
+uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr)
{
- SMB_BIG_UINT val = -1;
+ uint64_t val = -1;
const char *p = nptr;
if (!p) {
@@ -2295,11 +2295,7 @@ SMB_BIG_UINT STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr)
while (*p && isspace(*p))
p++;
-#ifdef LARGE_SMB_OFF_T
- sscanf(p,"%llu",&val);
-#else /* LARGE_SMB_OFF_T */
- sscanf(p,"%lu",&val);
-#endif /* LARGE_SMB_OFF_T */
+ sscanf(p,"%"PRIu64,&val);
if (entptr) {
while (*p && isdigit(*p))
p++;