io.c (dosfstools-4.1) | : | io.c (dosfstools-4.2) | ||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
typedef struct _change { | typedef struct _change { | |||
void *data; | void *data; | |||
off_t pos; | off_t pos; | |||
int size; | int size; | |||
struct _change *next; | struct _change *next; | |||
} CHANGE; | } CHANGE; | |||
static CHANGE *changes, *last; | static CHANGE *changes, *last; | |||
static int fd, did_change = 0; | static int fd, did_change = 0; | |||
void fs_open(char *path, int rw) | void fs_open(const char *path, int rw) | |||
{ | { | |||
if ((fd = open(path, rw ? O_RDWR : O_RDONLY)) < 0) { | if ((fd = open(path, rw ? O_RDWR : O_RDONLY)) < 0) { | |||
perror("open"); | perror("open"); | |||
exit(6); | exit(6); | |||
} | } | |||
changes = last = NULL; | changes = last = NULL; | |||
did_change = 0; | did_change = 0; | |||
} | } | |||
/** | /** | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |