From af6e02f86907cb38af917f4a8c75eb9804e57b11 Mon Sep 17 00:00:00 2001 From: rupa Date: Tue, 24 Dec 2013 17:35:33 -0500 Subject: [PATCH] formatting --- c/z_prompt_command.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/c/z_prompt_command.c b/c/z_prompt_command.c index d8c7b09..394b836 100644 --- a/c/z_prompt_command.c +++ b/c/z_prompt_command.c @@ -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; - }