Equality of C strings is tested by !strcmp() :-)
authorMichael Matz <matz@suse.de>
Fri, 8 Feb 2008 01:28:54 +0000 (01:28 +0000)
committerMichael Matz <matz@suse.de>
Fri, 8 Feb 2008 01:28:54 +0000 (01:28 +0000)
zypp/sat/Solvable.cc

index e113eb7..ec143b9 100644 (file)
@@ -192,7 +192,7 @@ namespace zypp
       {
         switch ( ident[3] )
         {
-#define OUTS(K,S) if ( ::strncmp( ident, ResKind::K.c_str(), S ) ) return ResKind::K
+#define OUTS(K,S) if ( !::strncmp( ident, ResKind::K.c_str(), S ) ) return ResKind::K
           //             ----v
           case 'c': OUTS( patch, 5 );       break;
           case 'd': OUTS( product, 7 );     break;