# | Line 23 | Line 23 | static char SCCSid[] = "$SunId$ LBL"; | |
---|---|---|
23 | #endif | |
24 | #endif | |
25 | ||
26 | < | #ifndef BSD |
27 | < | #define vfork fork |
28 | < | #endif |
26 | > | #include "vfork.h" |
27 | ||
28 | ||
29 | int | |
# | Line 102 | Line 100 | int fd; | |
100 | char *bpos; | |
101 | int siz; | |
102 | { | |
103 | < | register int cc, nrem = siz; |
103 | > | register int cc = 0, nrem = siz; |
104 | ||
105 | while (nrem > 0 && (cc = read(fd, bpos, nrem)) > 0) { | |
106 | bpos += cc; | |
# | Line 120 | Line 118 | int fd; | |
118 | char *bpos; | |
119 | int siz; | |
120 | { | |
121 | < | register int cc, nrem = siz; |
121 | > | register int cc = 0, nrem = siz; |
122 | ||
123 | while (nrem > 0 && (cc = write(fd, bpos, nrem)) > 0) { | |
124 | bpos += cc; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |