Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sdpquery if print_attribute() did not print, we shou...



details:   https://anonhg.NetBSD.org/src/rev/34d2180f015f
branches:  trunk
changeset: 766510:34d2180f015f
user:      plunky <plunky%NetBSD.org@localhost>
date:      Fri Jun 24 20:06:04 2011 +0000

description:
if print_attribute() did not print, we should try the next
service_class before failing

diffstat:

 usr.bin/sdpquery/print.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r f2f84551b0e6 -r 34d2180f015f usr.bin/sdpquery/print.c
--- a/usr.bin/sdpquery/print.c  Fri Jun 24 19:03:46 2011 +0000
+++ b/usr.bin/sdpquery/print.c  Fri Jun 24 20:06:04 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.10 2011/06/24 19:03:46 plunky Exp $        */
+/*     $NetBSD: print.c,v 1.11 2011/06/24 20:06:04 plunky Exp $        */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: print.c,v 1.10 2011/06/24 19:03:46 plunky Exp $");
+__RCSID("$NetBSD: print.c,v 1.11 2011/06/24 20:06:04 plunky Exp $");
 
 #include <ctype.h>
 #include <iconv.h>
@@ -646,10 +646,10 @@
 
        for (i = 0; i < nservices; i++) {
                for (j = 0; j < __arraycount(service_list); j++) {
-                       if (service_class[i] == service_list[j].class)
-                               return print_attribute(id, value,
-                                   service_list[j].attrs,
-                                   service_list[j].nattr);
+                       if (service_class[i] == service_list[j].class
+                           && print_attribute(id, value,
+                           service_list[j].attrs, service_list[j].nattr))
+                               return true;
                }
        }
 



Home | Main Index | Thread Index | Old Index