make sure we return value in main and we want to fclose(FILE*), not close() it

SVN revision: 22143
This commit is contained in:
Mike Frysinger 2006-04-15 19:54:29 +00:00
parent cb459a223d
commit 1d4e19dbdc
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ main(int argc, char **argv)
if ((fp = fopen("/proc/version", "r")) == NULL) {
D(("Failed to open /proc/version -- %s\nWill assume not 2.6 kernel", strerror(errno)));
return;
return 1;
}
fgets(buff, sizeof(buff), fp);
@ -261,7 +261,7 @@ main(int argc, char **argv)
kernel_2_6 = 1;
}
close(fp);
fclose(fp);
/* end check for Kernel 2.6 */
atexit(Epplet_cleanup);