This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] Add comma to seperate parameters
- From: Chen Yu <yu dot chen dot surf at gmail dot com>
- To: systemtap at sourceware dot org
- Cc: David Smith <dsmith at redhat dot com>, Chen Yu <yu dot chen dot surf at gmail dot com>
- Date: Fri, 12 Aug 2016 17:13:22 +0800
- Subject: [PATCH] Add comma to seperate parameters
- Authentication-results: sourceware.org; auth=none
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