Code

workaround for zero initializer false warning
authorKrzysztof Matczak <krzysztofx.matczak@intel.com>
Sun, 25 Dec 2016 14:50:19 +0000 (14:50 +0000)
committerKrzysztof Matczak <krzysztofx.matczak@intel.com>
Sun, 25 Dec 2016 20:23:40 +0000 (20:23 +0000)
Change-Id: I77a8ca1d5854ebda8533483cdd5ea08c3c07a059
Signed-off-by: Krzysztof Matczak <krzysztofx.matczak@intel.com>
src/mcelog.c

index 9fad0be8c476910af57b55efe89231a573a51e6c..6dbfafcee62120a75733cf2798871702fadc68ee 100644 (file)
@@ -64,14 +64,14 @@ struct socket_adapter_s {
 };
 
 typedef struct mcelog_memory_rec_s {
-  char location[DATA_MAX_NAME_LEN];  /* SOCKET x CHANNEL x DIMM x*/
-  char dimm_name[DATA_MAX_NAME_LEN]; /* DMI_NAME "DIMM_F1" */
   int corrected_err_total;           /* x total*/
   int corrected_err_timed;           /* x in 24h*/
   char corrected_err_timed_period[DATA_MAX_NAME_LEN];
   int uncorrected_err_total; /* x total*/
   int uncorrected_err_timed; /* x in 24h*/
   char uncorrected_err_timed_period[DATA_MAX_NAME_LEN];
+  char location[DATA_MAX_NAME_LEN];  /* SOCKET x CHANNEL x DIMM x*/
+  char dimm_name[DATA_MAX_NAME_LEN]; /* DMI_NAME "DIMM_F1" */
 } mcelog_memory_rec_t;
 
 static int socket_close(socket_adapter_t *self);