Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Removed an incorrect use of __CONCAT when formattin...



details:   https://anonhg.NetBSD.org/src/rev/152458b63c65
branches:  trunk
changeset: 510257:152458b63c65
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Thu May 24 10:33:08 2001 +0000

description:
Removed an incorrect use of __CONCAT when formatting panic messages.

The ISO C standard says in 6.10.3.3 that if the result of using the
'##' operator "is not a valid preprocessing token, the behaviour is
undefined." Gcc 3.0 warns about this.

diffstat:

 sys/kern/tty_conf.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ca3895ff9f02 -r 152458b63c65 sys/kern/tty_conf.c
--- a/sys/kern/tty_conf.c       Thu May 24 08:17:22 2001 +0000
+++ b/sys/kern/tty_conf.c       Thu May 24 10:33:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_conf.c,v 1.32 2001/05/02 10:32:08 scw Exp $        */
+/*     $NetBSD: tty_conf.c,v 1.33 2001/05/24 10:33:08 kristerw Exp $   */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993
@@ -266,7 +266,7 @@
 #define TTYLDISCINIT(s, v) \
        do { \
                if (ttyldisc_add(&(s), (v)) != (v)) \
-                       panic(__CONCAT("ttyldisc_init: ", __STRING(s))); \
+                       panic("ttyldisc_init: " __STRING(s)); \
        } while (0)
 
 /*



Home | Main Index | Thread Index | Old Index