Use static modifier for temporary_buffer
authorLukas Slebodnik <lslebodn@redhat.com>
Fri, 21 Feb 2014 12:37:46 +0000 (13:37 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 21 Feb 2014 15:30:05 +0000 (16:30 +0100)
temporary_buffer is used only in the module calculator_test.c
It's better to use use static modifier explicitly in this case.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
example/calculator_test.c

index fc2bca0..60a7eb6 100644 (file)
@@ -57,7 +57,7 @@ extern int example_main(int argc, char *argv[]);
 int example_test_fprintf(FILE* const file, const char *format, ...) PRINTF_ATTRIBUTE(2, 3);
 int example_test_printf(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
 
-char temporary_buffer[256];
+static char temporary_buffer[256];
 
 /* A mock fprintf function that checks the value of strings printed to the
  * standard error stream. */