Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ieee1394 No reason not to make the string const.



details:   https://anonhg.NetBSD.org/src/rev/fcf99dc173ed
branches:  trunk
changeset: 804057:fcf99dc173ed
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Nov 21 23:37:25 2014 +0000

description:
No reason not to make the string const.

diffstat:

 sys/dev/ieee1394/fwcrom.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6db690497986 -r fcf99dc173ed sys/dev/ieee1394/fwcrom.c
--- a/sys/dev/ieee1394/fwcrom.c Fri Nov 21 23:36:20 2014 +0000
+++ b/sys/dev/ieee1394/fwcrom.c Fri Nov 21 23:37:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fwcrom.c,v 1.16 2014/09/21 18:03:47 christos Exp $     */
+/*     $NetBSD: fwcrom.c,v 1.17 2014/11/21 23:37:25 joerg Exp $        */
 /*-
  * Copyright (c) 2002-2003
  *     Hidetoshi Shimokawa. All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fwcrom.c,v 1.16 2014/09/21 18:03:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fwcrom.c,v 1.17 2014/11/21 23:37:25 joerg Exp $");
 
 #include <sys/param.h>
 #ifdef _KERNEL
@@ -172,7 +172,7 @@
        struct csrtext *textleaf;
        uint32_t *bp;
        int i, qlen;
-       static char *nullstr = (char *)&"(null)";
+       static const char nullstr[] = "(null)";
 
        if (cc->depth < 0)
                return;



Home | Main Index | Thread Index | Old Index