Fixed compiler warnings when compiling with gcc 4.3.4.
[lcr.git] / trace.c
diff --git a/trace.c b/trace.c
index b8dc001..9d192da 100644 (file)
--- a/trace.c
+++ b/trace.c
@@ -264,6 +264,7 @@ void _end_trace(const char *__file, int __line)
        FILE *fp;
        struct admin_list       *admin;
        struct admin_queue      *response, **responsep; /* response pointer */
+       int ret;
 
        if (!trace.name[0])
                PERROR("trace not started in file %s line %d\n", __file, __line);
@@ -278,7 +279,7 @@ void _end_trace(const char *__file, int __line)
                        if (options.log[0]) {
                                fp = fopen(options.log, "a");
                                if (fp) {
-                                       fwrite(string, strlen(string), 1, fp);
+                                       ret = fwrite(string, strlen(string), 1, fp);
                                        fclose(fp);
                                }
                        }