[BusyBox-cvs] busybox/editors sed.c,1.122,1.123
Glenn McGrath
bug1 at busybox.net
Tue Apr 8 11:56:15 UTC 2003
Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv31200
Modified Files:
sed.c
Log Message:
Run through indent
Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- sed.c 8 Apr 2003 06:42:45 -0000 1.122
+++ sed.c 8 Apr 2003 11:56:11 -0000 1.123
@@ -47,11 +47,11 @@
*/
#include <stdio.h>
-#include <unistd.h> /* for getopt() */
+#include <unistd.h> /* for getopt() */
#include <regex.h>
-#include <string.h> /* for strdup() */
+#include <string.h> /* for strdup() */
#include <errno.h>
-#include <ctype.h> /* for isspace() */
+#include <ctype.h> /* for isspace() */
[...1044 lines suppressed...]
* Otherwise, we process all the files specified. */
if (argv[optind] == NULL || (strcmp(argv[optind], "-") == 0)) {
process_file(stdin);
- }
- else {
+ } else {
int i;
FILE *file;
+
for (i = optind; i < argc; i++) {
file = bb_wfopen(argv[i], "r");
if (file) {
@@ -1131,6 +1190,6 @@
status = EXIT_FAILURE;
}
}
-
+
return status;
}
More information about the busybox-cvs
mailing list