diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-07 13:51:16 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-07 13:51:16 +0100 |
commit | f42c7b8fc161f5b3eb4e9c13f392daf7a11760c8 (patch) | |
tree | bea59c4f95103be889fbf09d2f8da09c06ca5519 /libbb | |
parent | e66a212081bcca521760ccff3a2da0deccd99340 (diff) | |
download | busybox-w32-f42c7b8fc161f5b3eb4e9c13f392daf7a11760c8.tar.gz busybox-w32-f42c7b8fc161f5b3eb4e9c13f392daf7a11760c8.tar.bz2 busybox-w32-f42c7b8fc161f5b3eb4e9c13f392daf7a11760c8.zip |
suppress "'fast_strtol_10' defined but not used" warning
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/procps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index f22a55d15..fb4c32001 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -154,6 +154,7 @@ static unsigned long fast_strtoul_10(char **endptr) | |||
154 | return n; | 154 | return n; |
155 | } | 155 | } |
156 | 156 | ||
157 | # if ENABLE_FEATURE_FAST_TOP | ||
157 | static long fast_strtol_10(char **endptr) | 158 | static long fast_strtol_10(char **endptr) |
158 | { | 159 | { |
159 | if (**endptr != '-') | 160 | if (**endptr != '-') |
@@ -162,6 +163,7 @@ static long fast_strtol_10(char **endptr) | |||
162 | (*endptr)++; | 163 | (*endptr)++; |
163 | return - (long)fast_strtoul_10(endptr); | 164 | return - (long)fast_strtoul_10(endptr); |
164 | } | 165 | } |
166 | # endif | ||
165 | 167 | ||
166 | static char *skip_fields(char *str, int count) | 168 | static char *skip_fields(char *str, int count) |
167 | { | 169 | { |
@@ -450,7 +452,7 @@ procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) | |||
450 | //FIXME: is it safe to assume this field exists? | 452 | //FIXME: is it safe to assume this field exists? |
451 | sp->last_seen_on_cpu = fast_strtoul_10(&cp); | 453 | sp->last_seen_on_cpu = fast_strtoul_10(&cp); |
452 | # endif | 454 | # endif |
453 | #endif /* end of !ENABLE_FEATURE_TOP_SMP_PROCESS */ | 455 | #endif /* FEATURE_FAST_TOP */ |
454 | 456 | ||
455 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS | 457 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS |
456 | sp->niceness = tasknice; | 458 | sp->niceness = tasknice; |