projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no message)
[unix-history]
/
usr
/
src
/
usr.bin
/
soelim
/
soelim.c
diff --git
a/usr/src/usr.bin/soelim/soelim.c
b/usr/src/usr.bin/soelim/soelim.c
index
7233536
..
a93874d
100644
(file)
--- a/
usr/src/usr.bin/soelim/soelim.c
+++ b/
usr/src/usr.bin/soelim/soelim.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)soelim.c 4.
3
(Berkeley) %G%";
+static char *sccsid = "@(#)soelim.c 4.
4
(Berkeley) %G%";
#include <stdio.h>
/*
#include <stdio.h>
/*
@@
-58,7
+58,7
@@
int process(file)
}
for (;;) {
c = getc(soee);
}
for (;;) {
c = getc(soee);
- if (c
< 0
)
+ if (c
== EOF
)
break;
if (c != '.')
goto simple;
break;
if (c != '.')
goto simple;
@@
-98,7
+98,7
@@
donename:
printf(".so");
goto simple;
}
printf(".so");
goto simple;
}
- *cp
++
= 0;
+ *cp = 0;
if (process(fname) < 0)
if (isfile)
printf(".so %s\n", fname);
if (process(fname) < 0)
if (isfile)
printf(".so %s\n", fname);
@@
-107,6
+107,10
@@
simple:
if (c == EOF)
break;
putchar(c);
if (c == EOF)
break;
putchar(c);
+ if (c != '\n') {
+ c = getc(soee);
+ goto simple;
+ }
}
if (soee != stdin) {
fclose(soee);
}
if (soee != stdin) {
fclose(soee);