This patch annotates that a couple of values emitted on failure are
of type size_t, eliminating a couple of compiler warnings.

Signed-off-by: Steve Beattie <st...@nxnw.org>
---
 tests/regression/apparmor/introspect.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: b/tests/regression/apparmor/introspect.c
===================================================================
--- a/tests/regression/apparmor/introspect.c
+++ b/tests/regression/apparmor/introspect.c
@@ -1,5 +1,6 @@
 /*
  *     Copyright (C) 2002-2005 Novell/SUSE
+ *     Copyright (C) 2013 Canonical Ltd.
  *
  *     This program is free software; you can redistribute it and/or
  *     modify it under the terms of the GNU General Public License as
@@ -69,14 +70,14 @@ int main(int argc, char *argv[])
                if (rc != strlen(profile) + strlen(mode) + 4) {
                        /* rc includes mode. + 2 null term + 1 ( + 1 space */
                        fprintf(stderr,
-                               "FAIL: expected return len %d != actual %d\n",
+                               "FAIL: expected return len %zd != actual %d\n",
                                strlen(profile) + strlen(mode) + 4, rc);
                        exit(1);
                }
        } else if (rc != strlen(profile) + 1) {
                /* rc includes null termination */
                fprintf(stderr,
-                       "FAIL: expected return len %d != actual %d\n",
+                       "FAIL: expected return len %zd != actual %d\n",
                        strlen(profile) + 1, rc);
                exit(1);
        }


-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to