projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reinclude some headers
[mmh]
/
sbr
/
cpydgst.c
diff --git
a/sbr/cpydgst.c
b/sbr/cpydgst.c
index
86211cf
..
a9e5bc6
100644
(file)
--- a/
sbr/cpydgst.c
+++ b/
sbr/cpydgst.c
@@
-7,6
+7,7
@@
** complete copyright information.
*/
** complete copyright information.
*/
+#include <unistd.h>
#include <h/mh.h>
/*
#include <h/mh.h>
/*
@@
-45,18
+46,18
@@
cpydgst(int in, int out, char *ifile, char *ofile)
if (*cp == '\0')
continue;
switch (state) {
if (*cp == '\0')
continue;
switch (state) {
- case S1:
- if (*cp == '-') {
- output('-');
- output(' ');
- }
- state = S2; /* fall */
+ case S1:
+ if (*cp == '-') {
+ output('-');
+ output(' ');
+ }
+ state = S2; /* fall */
- case S2:
- output(*cp);
- if (*cp == '\n')
- state = S1;
- break;
+ case S2:
+ output(*cp);
+ if (*cp == '\n')
+ state = S1;
+ break;
}
}
}
}