| # | Line 5 | Line 5 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 5 | * Copy data into a holodeck file | |
| 6 | */ | |
| 7 | ||
| 8 | + | #include "platform.h" |
| 9 | #include "holo.h" | |
| 10 | #include "view.h" | |
| 11 | ||
| # | Line 128 | Line 129 | int append; | |
| 129 | nextloc = ftell(fp); /* get stdio position */ | |
| 130 | fclose(fp); /* done with stdio */ | |
| 131 | for (n = 0; nextloc > 0L; n++) { /* initialize each section */ | |
| 132 | < | lseek(fd, (off_t)nextloc, 0); |
| 132 | > | lseek(fd, (off_t)nextloc, SEEK_SET); |
| 133 | read(fd, (char *)&nextloc, sizeof(nextloc)); | |
| 134 | hdinit(fd, NULL)->priv = hflags&H_OBST ? &obstr : | |
| 135 | hflags&H_OBSF ? &unobstr : (char *)NULL; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |