summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko2011-11-16 21:30:19 +0100
committerDenys Vlasenko2011-11-16 21:30:19 +0100
commitf59a50ee3031c520fdb4183b98fd7b13b94be4f7 (patch)
tree3ac4538e793fa4079466a2fcdefb559f8bb38351 /include
parenta092a89d8f052072e562861f2968573d89e10dd5 (diff)
downloadbusybox-f59a50ee3031c520fdb4183b98fd7b13b94be4f7.zip
busybox-f59a50ee3031c520fdb4183b98fd7b13b94be4f7.tar.gz
libbb.h: tighten up macro code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 09e8d28..7963518 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -211,7 +211,7 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
# if ULONG_MAX > 0xffffffff
/* "long" is long enough on this system */
typedef unsigned long uoff_t;
-# define XATOOFF(a) xatoul_range(a, 0, LONG_MAX)
+# define XATOOFF(a) xatoul_range((a), 0, LONG_MAX)
/* usage: sz = BB_STRTOOFF(s, NULL, 10); if (errno || sz < 0) die(); */
# define BB_STRTOOFF bb_strtoul
# define STRTOOFF strtoul
@@ -220,7 +220,7 @@ typedef unsigned long uoff_t;
# else
/* "long" is too short, need "long long" */
typedef unsigned long long uoff_t;
-# define XATOOFF(a) xatoull_range(a, 0, LLONG_MAX)
+# define XATOOFF(a) xatoull_range((a), 0, LLONG_MAX)
# define BB_STRTOOFF bb_strtoull
# define STRTOOFF strtoull
# define OFF_FMT "ll"
@@ -237,7 +237,7 @@ typedef unsigned long uoff_t;
# define OFF_FMT "l"
# else
typedef unsigned long uoff_t;
-# define XATOOFF(a) xatoul_range(a, 0, LONG_MAX)
+# define XATOOFF(a) xatoul_range((a), 0, LONG_MAX)
# define BB_STRTOOFF bb_strtoul
# define STRTOOFF strtol
# define OFF_FMT "l"