Fix C99 inline function build issue sandbox/mkashkarov/tizen_6.0_build
authorsgrubb <sgrubb@03a675c2-f56d-4096-908f-63dba836b7e4>
Tue, 3 Nov 2015 19:27:40 +0000 (19:27 +0000)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Wed, 25 Dec 2019 13:24:40 +0000 (16:24 +0300)
git-svn-id: http://svn.fedorahosted.org/svn/audit/trunk@1132 03a675c2-f56d-4096-908f-63dba836b7e4
(cherry picked from commit ad3dfd1f7706c3c90f1d5abccaad08aef6ff410f)

tools/auvirt/auvirt.c

index 655c454..53863e2 100644 (file)
@@ -138,10 +138,8 @@ void event_free(struct event *event)
        }
 }
 
-inline char *copy_str(const char *str)
-{
-       return (str) ? strdup(str) : NULL;
-}
+#define copy_str( str ) (str) ? strdup(str) : NULL
+
 
 void usage(FILE *output)
 {
@@ -650,7 +648,7 @@ int process_control_event(auparse_state_t *au)
        return 0;
 }
 
-inline int is_resource(const char *res)
+static int is_resource(const char *res)
 {
        if (res == NULL ||
            res[0] == '\0' ||