Module Name: src Committed By: joerg Date: Fri Nov 21 23:37:25 UTC 2014
Modified Files: src/sys/dev/ieee1394: fwcrom.c Log Message: No reason not to make the string const. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/dev/ieee1394/fwcrom.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ieee1394/fwcrom.c diff -u src/sys/dev/ieee1394/fwcrom.c:1.16 src/sys/dev/ieee1394/fwcrom.c:1.17 --- src/sys/dev/ieee1394/fwcrom.c:1.16 Sun Sep 21 18:03:47 2014 +++ src/sys/dev/ieee1394/fwcrom.c Fri Nov 21 23:37:25 2014 @@ -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 @@ crom_parse_text(struct crom_context *cc, struct csrtext *textleaf; uint32_t *bp; int i, qlen; - static char *nullstr = (char *)&"(null)"; + static const char nullstr[] = "(null)"; if (cc->depth < 0) return;