diff options
author | Gergely Nagy <algernon@balabit.hu> | 2012-03-24 10:04:34 +0100 |
---|---|---|
committer | Gergely Nagy <algernon@balabit.hu> | 2012-03-24 10:04:34 +0100 |
commit | d5dd310da5fdad1690827293ae7f4260ec9ed971 (patch) | |
tree | 803e689164c0cc974111b3db548cf14b881cbed7 | |
parent | 3833ceed1695bbd723801c04235054d60c212a05 (diff) | |
download | libumberlog-d5dd310da5fdad1690827293ae7f4260ec9ed971.tar.gz libumberlog-d5dd310da5fdad1690827293ae7f4260ec9ed971.tar.xz libumberlog-d5dd310da5fdad1690827293ae7f4260ec9ed971.zip |
Mark a few internal functions inline.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
-rw-r--r-- | lib/umberlog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/umberlog.c b/lib/umberlog.c index 151b333..842ab43 100644 --- a/lib/umberlog.c +++ b/lib/umberlog.c @@ -94,7 +94,7 @@ ul_openlog (const char *ident, int option, int facility) } /** HELPERS **/ -static const char * +static inline const char * _find_facility (void) { int i = 0; @@ -108,7 +108,7 @@ _find_facility (void) return "<unknown>"; } -static const char * +static inline const char * _find_prio (int prio) { int i = 0; @@ -159,7 +159,7 @@ _get_hostname (void) return ul_sys_settings.hostname; } -static struct json_object * +static inline struct json_object * _ul_json_vappend (struct json_object *json, va_list ap) { char *key; @@ -177,7 +177,7 @@ _ul_json_vappend (struct json_object *json, va_list ap) return json; } -static struct json_object * +static inline struct json_object * _ul_json_append (struct json_object *json, ...) { va_list ap; @@ -230,7 +230,7 @@ _ul_discover (struct json_object *jo, int priority) _ul_json_append_timestamp (jo); } -static struct json_object * +static inline struct json_object * _ul_vformat (struct json_object *jo, int format_version, int priority, const char *msg_format, va_list ap) |