projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9662b
)
Hum, rename rstrneq() to rstreqn() to avoid confusing neq with "not equal"
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 31 Aug 2009 07:44:35 +0000
(10:44 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 31 Aug 2009 07:44:35 +0000
(10:44 +0300)
rpmio/rpmstring.h
patch
|
blob
|
history
diff --git
a/rpmio/rpmstring.h
b/rpmio/rpmstring.h
index
607d1b6
..
e0aa511
100644
(file)
--- a/
rpmio/rpmstring.h
+++ b/
rpmio/rpmstring.h
@@
-121,7
+121,7
@@
static inline int rstreq(const char *s1, const char *s2)
* @param n compare at most n characters
* @return 0 if strings differ, 1 if equal
*/
-static inline int rstr
neq
(const char *s1, const char *s2, size_t n)
+static inline int rstr
eqn
(const char *s1, const char *s2, size_t n)
{
return (strncmp(s1, s2, n) == 0);
}