aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 3a94a0070..128aa9207 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1198,23 +1198,23 @@ unsigned long long bb_makedev(unsigned int major, unsigned int minor) FAST_FUNC;
1198 1198
1199#if ENABLE_FEATURE_EDITING 1199#if ENABLE_FEATURE_EDITING
1200/* It's NOT just ENABLEd or disabled. It's a number: */ 1200/* It's NOT just ENABLEd or disabled. It's a number: */
1201#ifdef CONFIG_FEATURE_EDITING_HISTORY 1201# ifdef CONFIG_FEATURE_EDITING_HISTORY
1202# define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0) 1202# define MAX_HISTORY (CONFIG_FEATURE_EDITING_HISTORY + 0)
1203#else 1203# else
1204# define MAX_HISTORY 0 1204# define MAX_HISTORY 0
1205#endif 1205# endif
1206typedef struct line_input_t { 1206typedef struct line_input_t {
1207 int flags; 1207 int flags;
1208 const char *path_lookup; 1208 const char *path_lookup;
1209#if MAX_HISTORY 1209# if MAX_HISTORY
1210 int cnt_history; 1210 int cnt_history;
1211 int cur_history; 1211 int cur_history;
1212#if ENABLE_FEATURE_EDITING_SAVEHISTORY 1212# if ENABLE_FEATURE_EDITING_SAVEHISTORY
1213 unsigned cnt_history_in_file; 1213 unsigned cnt_history_in_file;
1214 const char *hist_file; 1214 const char *hist_file;
1215#endif 1215# endif
1216 char *history[MAX_HISTORY + 1]; 1216 char *history[MAX_HISTORY + 1];
1217#endif 1217# endif
1218} line_input_t; 1218} line_input_t;
1219enum { 1219enum {
1220 DO_HISTORY = 1 * (MAX_HISTORY > 0), 1220 DO_HISTORY = 1 * (MAX_HISTORY > 0),
@@ -1241,12 +1241,12 @@ int read_line_input(const char* prompt, char* command, int maxsize) FAST_FUNC;
1241 1241
1242 1242
1243#ifndef COMM_LEN 1243#ifndef COMM_LEN
1244#ifdef TASK_COMM_LEN 1244# ifdef TASK_COMM_LEN
1245enum { COMM_LEN = TASK_COMM_LEN }; 1245enum { COMM_LEN = TASK_COMM_LEN };
1246#else 1246# else
1247/* synchronize with sizeof(task_struct.comm) in /usr/include/linux/sched.h */ 1247/* synchronize with sizeof(task_struct.comm) in /usr/include/linux/sched.h */
1248enum { COMM_LEN = 16 }; 1248enum { COMM_LEN = 16 };
1249#endif 1249# endif
1250#endif 1250#endif
1251typedef struct procps_status_t { 1251typedef struct procps_status_t {
1252 DIR *dir; 1252 DIR *dir;