This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add comma to seperate parameters


Fix a typo for _stp_strcmp otherwise can not run.

Signed-off-by: Chen Yu <yu.chen.surf@gmail.com>
---
 runtime/stp_string.c | 2 +-
 runtime/stp_string.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/runtime/stp_string.c b/runtime/stp_string.c
index 54f056c..50130e1 100644
--- a/runtime/stp_string.c
+++ b/runtime/stp_string.c
@@ -347,7 +347,7 @@ static int _stp_convert_utf32(char* buf, int size, u32 c)
  *         less than, to match, or be greater than s2. NULL pointers
  *         are treated as empty strings.
  */
-static inline int _stp_strcmp(const char *s1 const char *s2)
+static inline int _stp_strcmp(const char *s1, const char *s2)
 {
 	if (s1 == NULL && s2 == NULL)
 		return 0;
diff --git a/runtime/stp_string.h b/runtime/stp_string.h
index 327a9f6..c8697a6 100644
--- a/runtime/stp_string.h
+++ b/runtime/stp_string.h
@@ -14,6 +14,6 @@
 
 static int _stp_text_str(char *out, const char *in, int inlen, int outlen, int quoted, int user, int buffer);
 
-static inline int _stp_strcmp(const char *s1 const char *s2);
+static inline int _stp_strcmp(const char *s1, const char *s2);
 
 #endif /* _STP_STRING_H_ */
-- 
2.7.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]