formatting

This commit is contained in:
rupa committed 2013-12-24 17:35:33 -05:00
1 parent 5580d1af5e
commit af6e02f869
1 file changed
-3
-3
View File
@@ -29,13 +29,11 @@ int main() {
} else {
sprintf(datafile, "%s", _Z_DATA);
}
read = fopen(datafile, "r");
if (read == NULL) return EXIT_FAILURE;
srand(time(NULL));
sprintf(tmpfile, "%s.%d", datafile, rand());
write = fopen(tmpfile, "w");
if (write == NULL) return EXIT_FAILURE;
@@ -54,5 +52,4 @@ int main() {
if (rename(tmpfile, datafile) == 0) return EXIT_SUCCESS;
return EXIT_FAILURE;
}