Patchwork [4/4] graphite: fix warning about gnu extension usage

login
register
mail settings
Submitter Eric Leblond
Date Jan. 19, 2013, 9:53 a.m.
Message ID <1358589231-1358-5-git-send-email-eric@regit.org>
Download mbox | patch
Permalink /patch/213809/
State Accepted
Headers show

Comments

Eric Leblond - Jan. 19, 2013, 9:53 a.m.
clang is complaining about missing = being a gnu extension. This
patch adds equal sign to fix the warning.

Signed-off-by: Eric Leblond <eric@regit.org>
---
 output/ulogd_output_GRAPHITE.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/output/ulogd_output_GRAPHITE.c b/output/ulogd_output_GRAPHITE.c
index 25b578e..a4b31a5 100644
--- a/output/ulogd_output_GRAPHITE.c
+++ b/output/ulogd_output_GRAPHITE.c
@@ -42,19 +42,19 @@  enum {
 
 
 static struct ulogd_key graphite_inp[] = {
-	[KEY_SUM_NAME] {
+	[KEY_SUM_NAME] = {
 		.type	= ULOGD_RET_STRING,
 		.name	= "sum.name",
 	},
-	[KEY_SUM_PKTS] {
+	[KEY_SUM_PKTS] = {
 		.type	= ULOGD_RET_UINT64,
 		.name	= "sum.pkts",
 	},
-	[KEY_SUM_BYTES] {
+	[KEY_SUM_BYTES] = {
 		.type	= ULOGD_RET_UINT64,
 		.name	= "sum.bytes",
 	},
-	[KEY_OOB_TIME_SEC] {
+	[KEY_OOB_TIME_SEC] = {
 		.type = ULOGD_RET_UINT32,
 		.name = "oob.time.sec",
 	},