"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/io.c" between
dosfstools-4.1.tar.gz and dosfstools-4.2.tar.gz

About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)