[pulseaudio-commits] r1817 - in /branches/lennart/src/pulsecore: object.c object.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Sep 14 10:12:25 PDT 2007


Author: lennart
Date: Fri Sep 14 19:12:25 2007
New Revision: 1817

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1817&root=pulseaudio&view=rev
Log:
make newer gcc shut up

Modified:
    branches/lennart/src/pulsecore/object.c
    branches/lennart/src/pulsecore/object.h

Modified: branches/lennart/src/pulsecore/object.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/object.c?rev=1817&root=pulseaudio&r1=1816&r2=1817&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/object.c (original)
+++ branches/lennart/src/pulsecore/object.c Fri Sep 14 19:12:25 2007
@@ -68,5 +68,5 @@
 int pa_object_check_type(const char *type_name) {
     pa_assert(type_name);
     
-    return type_name == "pa_object" || strcmp(type_name, "pa_object") == 0;
+    return strcmp(type_name, "pa_object") == 0;
 }

Modified: branches/lennart/src/pulsecore/object.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/object.h?rev=1817&root=pulseaudio&r1=1816&r2=1817&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/object.h (original)
+++ branches/lennart/src/pulsecore/object.h Fri Sep 14 19:12:25 2007
@@ -96,8 +96,7 @@
 #define PA_DEFINE_CHECK_TYPE(c, parent)                                 \
     int c##_check_type(const char *type) {                              \
         pa_assert(type);                                                \
-        if (type == #c ||                                               \
-            strcmp(type, #c) == 0)                                      \
+        if (strcmp(type, #c) == 0)                                      \
             return 1;                                                   \
         return parent##_check_type(type);                               \
     }                                                                   \




More information about the pulseaudio-commits mailing list