Commit 435469ec authored by Lev Walkin's avatar Lev Walkin

remove gcc compiler warnings

parent c547661e
......@@ -156,6 +156,7 @@ process(const char *fname) {
unsigned char fbuf[4096];
char *ext = strrchr(fname, '.');
enum expectation expectation;
char *cwd;
int ret;
int rd;
FILE *fp;
......@@ -176,7 +177,8 @@ process(const char *fname) {
fprintf(stderr, "\nProcessing file [../%s]\n", fname);
getcwd(prevdir, sizeof(prevdir));
cwd = getcwd(prevdir, sizeof(prevdir));
assert(cwd != NULL);
ret = chdir(SRCDIR_S "/data-62");
assert(ret == 0);
fp = fopen(fname, "r");
......
......@@ -233,6 +233,7 @@ process(const char *fname) {
unsigned char fbuf[4096];
char *ext = strrchr(fname, '.');
enum expectation expectation;
char *cwd;
int ret;
int rd;
FILE *fp;
......@@ -253,7 +254,8 @@ process(const char *fname) {
fprintf(stderr, "\nProcessing file [../%s]\n", fname);
getcwd(prevdir, sizeof(prevdir));
cwd = getcwd(prevdir, sizeof(prevdir));
assert(cwd != NULL);
ret = chdir(SRCDIR_S "/data-70");
assert(ret == 0);
fp = fopen(fname, "r");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment