CVS commit: src/usr.sbin/srtconfig

2020-02-09 Thread Santhosh Raju
Module Name:src
Committed By:   fox
Date:   Sun Feb  9 15:10:31 UTC 2020

Modified Files:
src/usr.sbin/srtconfig: Makefile

Log Message:
usr.sbin/srtconfig: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION to srtconfig.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/srtconfig/Makefile

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

Modified files:

Index: src/usr.sbin/srtconfig/Makefile
diff -u src/usr.sbin/srtconfig/Makefile:1.2 src/usr.sbin/srtconfig/Makefile:1.3
--- src/usr.sbin/srtconfig/Makefile:1.2	Fri Dec 29 10:39:59 2006
+++ src/usr.sbin/srtconfig/Makefile	Sun Feb  9 15:10:31 2020
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2006/12/29 10:39:59 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2020/02/09 15:10:31 fox Exp $
 # This file is in the public domain.
 
 PROG=	srtconfig
 SRCS=	srtconfig.c
 
+COPTS.srtconfig.c+=	${GCC_NO_STRINGOP_TRUNCATION}
+
 .include 



CVS commit: src/usr.sbin/srtconfig

2019-03-25 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Mar 25 23:43:57 UTC 2019

Modified Files:
src/usr.sbin/srtconfig: srtconfig.c

Log Message:
Fix open() error message - use a colon rather than a semicolon to match
the other error messages


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/srtconfig/srtconfig.c

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

Modified files:

Index: src/usr.sbin/srtconfig/srtconfig.c
diff -u src/usr.sbin/srtconfig/srtconfig.c:1.4 src/usr.sbin/srtconfig/srtconfig.c:1.5
--- src/usr.sbin/srtconfig/srtconfig.c:1.4	Thu May  4 16:26:09 2017
+++ src/usr.sbin/srtconfig/srtconfig.c	Mon Mar 25 23:43:56 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: srtconfig.c,v 1.4 2017/05/04 16:26:09 sevan Exp $ */
+/* $NetBSD: srtconfig.c,v 1.5 2019/03/25 23:43:56 pgoyette Exp $ */
 /* This file is in the public domain. */
 
 #include 
@@ -99,7 +99,7 @@ static void open_dev(int how)
   }
  devfd = open(txt_dev,how,0);
  if (devfd < 0)
-  { fprintf(stderr,"%s; can't open %s: %s\n",__progname,txt_dev,strerror(errno));
+  { fprintf(stderr,"%s: can't open %s: %s\n",__progname,txt_dev,strerror(errno));
 exit(1);
   }
 }