projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed77019
)
Equality of C strings is tested by !strcmp() :-)
author
Michael Matz
<matz@suse.de>
Fri, 8 Feb 2008 01:28:54 +0000
(
01:28
+0000)
committer
Michael Matz
<matz@suse.de>
Fri, 8 Feb 2008 01:28:54 +0000
(
01:28
+0000)
zypp/sat/Solvable.cc
patch
|
blob
|
history
diff --git
a/zypp/sat/Solvable.cc
b/zypp/sat/Solvable.cc
index
e113eb7
..
ec143b9
100644
(file)
--- a/
zypp/sat/Solvable.cc
+++ b/
zypp/sat/Solvable.cc
@@
-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;