svn commit: trunk/busybox/procps

pgf at busybox.net pgf at busybox.net
Fri Jan 20 21:48:07 UTC 2006


Author: pgf
Date: 2006-01-20 13:48:06 -0800 (Fri, 20 Jan 2006)
New Revision: 13460

Log:
compile on 2.96 for a while longer -- no floating declarations.


Modified:
   trunk/busybox/procps/fuser.c


Changeset:
Modified: trunk/busybox/procps/fuser.c
===================================================================
--- trunk/busybox/procps/fuser.c	2006-01-20 21:01:59 UTC (rev 13459)
+++ trunk/busybox/procps/fuser.c	2006-01-20 21:48:06 UTC (rev 13460)
@@ -46,7 +46,7 @@
 
 	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;
@@ -57,7 +57,7 @@
 			bb_error_msg_and_die(
 				"Unsupported option '%c'", *option); 
 		}
-		*++option;
+		++option;
 	}
 	return opt;
 }
@@ -278,8 +278,7 @@
 }
 
 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) {
@@ -291,8 +290,7 @@
 }
 
 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;
 




More information about the busybox-cvs mailing list