Module Name:    src
Committed By:   mrg
Date:           Tue Feb  6 09:33:07 UTC 2018

Modified Files:
        src/sbin/routed: table.c

Log Message:
update for GCC 6:

- read_rt() has a missing {} issue.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sbin/routed/table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/routed/table.c
diff -u src/sbin/routed/table.c:1.27 src/sbin/routed/table.c:1.28
--- src/sbin/routed/table.c:1.27	Tue Dec 20 03:35:12 2016
+++ src/sbin/routed/table.c	Tue Feb  6 09:33:07 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: table.c,v 1.27 2016/12/20 03:35:12 ozaki-r Exp $	*/
+/*	$NetBSD: table.c,v 1.28 2018/02/06 09:33:07 mrg Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -36,7 +36,7 @@
 #include "defs.h"
 
 #ifdef __NetBSD__
-__RCSID("$NetBSD: table.c,v 1.27 2016/12/20 03:35:12 ozaki-r Exp $");
+__RCSID("$NetBSD: table.c,v 1.28 2018/02/06 09:33:07 mrg Exp $");
 #elif defined(__FreeBSD__)
 __RCSID("$FreeBSD$");
 #else
@@ -1292,11 +1292,12 @@ read_rt(void)
 			gate = 0;
 		}
 
-		if (INFO_AUTHOR(&info) != 0)
+		if (INFO_AUTHOR(&info) != 0) {
 			snprintf(strp, str + sizeof(str) - strp,
 			    " by authority of %s",
 			    saddr_ntoa(INFO_AUTHOR(&info)));
 			strp += strlen(strp);
+		}
 
 		switch (m.r.rtm.rtm_type) {
 		case RTM_ADD:

Reply via email to