Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sdpquery use built-in macro ___STRING() rather than ...



details:   https://anonhg.NetBSD.org/src/rev/552e1e8fab5c
branches:  trunk
changeset: 761828:552e1e8fab5c
user:      plunky <plunky%NetBSD.org@localhost>
date:      Tue Feb 08 18:14:00 2011 +0000

description:
use built-in macro ___STRING() rather than rolling our own

diffstat:

 usr.bin/sdpquery/command.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r e04a456b3a25 -r 552e1e8fab5c usr.bin/sdpquery/command.c
--- a/usr.bin/sdpquery/command.c        Tue Feb 08 14:45:35 2011 +0000
+++ b/usr.bin/sdpquery/command.c        Tue Feb 08 18:14:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: command.c,v 1.3 2009/12/05 16:54:13 plunky Exp $       */
+/*     $NetBSD: command.c,v 1.4 2011/02/08 18:14:00 plunky Exp $       */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: command.c,v 1.3 2009/12/05 16:54:13 plunky Exp $");
+__RCSID("$NetBSD: command.c,v 1.4 2011/02/08 18:14:00 plunky Exp $");
 
 #include <bluetooth.h>
 #include <err.h>
@@ -97,9 +97,7 @@
 int
 do_sdp_browse(int argc, const char **argv)
 {
-#define STR(x) __STRING(x)
-       const char *av = STR(SDP_SERVICE_CLASS_PUBLIC_BROWSE_GROUP);
-#undef STR
+       const char *av = ___STRING(SDP_SERVICE_CLASS_PUBLIC_BROWSE_GROUP);
 
        if (argc > 1)
                errx(EXIT_FAILURE, "Too many arguments");



Home | Main Index | Thread Index | Old Index