projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1d6990
)
compile on 2.96 for a while longer -- no floating declarations.
author
Paul Fox
<pgf@brightstareng.com>
Fri, 20 Jan 2006 21:48:06 +0000
(21:48 -0000)
committer
Paul Fox
<pgf@brightstareng.com>
Fri, 20 Jan 2006 21:48:06 +0000
(21:48 -0000)
procps/fuser.c
patch
|
blob
|
history
diff --git
a/procps/fuser.c
b/procps/fuser.c
index
66e0988
..
0258945
100644
(file)
--- a/
procps/fuser.c
+++ b/
procps/fuser.c
@@
-46,7
+46,7
@@
static int fuser_option(char *option)
if(!(strlen(option))) return 0;
if(option[0] != '-') return 0;
if(!(strlen(option))) return 0;
if(option[0] != '-') return 0;
-
*
++option;
+ ++option;
while(*option != '\0') {
if(*option == 'm') opt |= FUSER_OPT_MOUNT;
else if(*option == 'k') opt |= FUSER_OPT_KILL;
while(*option != '\0') {
if(*option == 'm') opt |= FUSER_OPT_MOUNT;
else if(*option == 'k') opt |= FUSER_OPT_KILL;
@@
-57,7
+57,7
@@
static int fuser_option(char *option)
bb_error_msg_and_die(
"Unsupported option '%c'", *option);
}
bb_error_msg_and_die(
"Unsupported option '%c'", *option);
}
-
*
++option;
+ ++option;
}
return opt;
}
}
return opt;
}
@@
-278,8
+278,7
@@
static int fuser_scan_proc_pids(int opts, inode_list *ilist, pid_list *plist)
}
static int fuser_print_pid_list(pid_list *plist) {
}
static int fuser_print_pid_list(pid_list *plist) {
- pid_list *curr;
- curr = plist;
+ pid_list *curr = plist;
if(plist == NULL) return 0;
while(curr != NULL) {
if(plist == NULL) return 0;
while(curr != NULL) {
@@
-291,8
+290,7
@@
static int fuser_print_pid_list(pid_list *plist) {
}
static int fuser_kill_pid_list(pid_list *plist, int sig) {
}
static int fuser_kill_pid_list(pid_list *plist, int sig) {
- pid_list *curr;
- curr = plist;
+ pid_list *curr = plist;
pid_t mypid = getpid();
int success = 1;
pid_t mypid = getpid();
int success = 1;