aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2006-01-20 21:48:06 +0000
committerPaul Fox <pgf@brightstareng.com>2006-01-20 21:48:06 +0000
commitf9d40d6815aedda4b950ee642c6b0ca139481e91 (patch)
tree0d9b9b06167663f319ee618d5b81b72a73344517
parentc1d69906a0c5f28f3d84c14afb3b74c8f19f81c1 (diff)
downloadbusybox-w32-f9d40d6815aedda4b950ee642c6b0ca139481e91.tar.gz
busybox-w32-f9d40d6815aedda4b950ee642c6b0ca139481e91.tar.bz2
busybox-w32-f9d40d6815aedda4b950ee642c6b0ca139481e91.zip
compile on 2.96 for a while longer -- no floating declarations.
-rw-r--r--procps/fuser.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/procps/fuser.c b/procps/fuser.c
index 66e0988ae..0258945ea 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -46,7 +46,7 @@ static int fuser_option(char *option)
46 46
47 if(!(strlen(option))) return 0; 47 if(!(strlen(option))) return 0;
48 if(option[0] != '-') return 0; 48 if(option[0] != '-') return 0;
49 *++option; 49 ++option;
50 while(*option != '\0') { 50 while(*option != '\0') {
51 if(*option == 'm') opt |= FUSER_OPT_MOUNT; 51 if(*option == 'm') opt |= FUSER_OPT_MOUNT;
52 else if(*option == 'k') opt |= FUSER_OPT_KILL; 52 else if(*option == 'k') opt |= FUSER_OPT_KILL;
@@ -57,7 +57,7 @@ static int fuser_option(char *option)
57 bb_error_msg_and_die( 57 bb_error_msg_and_die(
58 "Unsupported option '%c'", *option); 58 "Unsupported option '%c'", *option);
59 } 59 }
60 *++option; 60 ++option;
61 } 61 }
62 return opt; 62 return opt;
63} 63}
@@ -278,8 +278,7 @@ static int fuser_scan_proc_pids(int opts, inode_list *ilist, pid_list *plist)
278} 278}
279 279
280static int fuser_print_pid_list(pid_list *plist) { 280static int fuser_print_pid_list(pid_list *plist) {
281 pid_list *curr; 281 pid_list *curr = plist;
282 curr = plist;
283 282
284 if(plist == NULL) return 0; 283 if(plist == NULL) return 0;
285 while(curr != NULL) { 284 while(curr != NULL) {
@@ -291,8 +290,7 @@ static int fuser_print_pid_list(pid_list *plist) {
291} 290}
292 291
293static int fuser_kill_pid_list(pid_list *plist, int sig) { 292static int fuser_kill_pid_list(pid_list *plist, int sig) {
294 pid_list *curr; 293 pid_list *curr = plist;
295 curr = plist;
296 pid_t mypid = getpid(); 294 pid_t mypid = getpid();
297 int success = 1; 295 int success = 1;
298 296