diff options
Diffstat (limited to 'libbb/procps.c')
-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 fcf86d9bb..c68d3e655 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -155,6 +155,7 @@ static unsigned long fast_strtoul_10(char **endptr) | |||
155 | return n; | 155 | return n; |
156 | } | 156 | } |
157 | 157 | ||
158 | # if ENABLE_FEATURE_FAST_TOP | ||
158 | static long fast_strtol_10(char **endptr) | 159 | static long fast_strtol_10(char **endptr) |
159 | { | 160 | { |
160 | if (**endptr != '-') | 161 | if (**endptr != '-') |
@@ -163,6 +164,7 @@ static long fast_strtol_10(char **endptr) | |||
163 | (*endptr)++; | 164 | (*endptr)++; |
164 | return - (long)fast_strtoul_10(endptr); | 165 | return - (long)fast_strtoul_10(endptr); |
165 | } | 166 | } |
167 | # endif | ||
166 | 168 | ||
167 | static char *skip_fields(char *str, int count) | 169 | static char *skip_fields(char *str, int count) |
168 | { | 170 | { |
@@ -451,7 +453,7 @@ procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) | |||
451 | //FIXME: is it safe to assume this field exists? | 453 | //FIXME: is it safe to assume this field exists? |
452 | sp->last_seen_on_cpu = fast_strtoul_10(&cp); | 454 | sp->last_seen_on_cpu = fast_strtoul_10(&cp); |
453 | # endif | 455 | # endif |
454 | #endif /* end of !ENABLE_FEATURE_TOP_SMP_PROCESS */ | 456 | #endif /* FEATURE_FAST_TOP */ |
455 | 457 | ||
456 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS | 458 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS |
457 | sp->niceness = tasknice; | 459 | sp->niceness = tasknice; |