X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-userspec.c;h=dd8c41e218e25192d489087554e7ba73c0b288b2;hb=98f7f8fde92f6f3f583cabc1168305a9ce542bbe;hp=17428f22848dd1dd9e104555c2a33cca0326109b;hpb=1c9217c42e20cb34140f66b58bca543fd14c4aea;p=gnulib.git diff --git a/tests/test-userspec.c b/tests/test-userspec.c index 17428f228..dd8c41e21 100644 --- a/tests/test-userspec.c +++ b/tests/test-userspec.c @@ -1,5 +1,5 @@ /* Test userspec.c - Copyright (C) 2009-2010 Free Software Foundation, Inc. + Copyright (C) 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -144,7 +144,7 @@ main (void) char *user_name; char *group_name; char const *diag = parse_user_spec (T[i].in, &uid, &gid, - &user_name, &group_name); + &user_name, &group_name); free (user_name); free (group_name); if (!same_diag (diag, T[i].result)) @@ -161,8 +161,8 @@ main (void) if (uid != T[i].uid || gid != T[i].gid) { printf ("%s mismatch (-: expected uid,gid; +:actual)\n" - "-%3lu,%3lu\n+%3lu,%3lu\n", - T[i].in, + "-%3lu,%3lu\n+%3lu,%3lu\n", + T[i].in, (unsigned long int) T[i].uid, (unsigned long int) T[i].gid, (unsigned long int) uid, @@ -175,8 +175,8 @@ main (void) { printf ("%s diagnostic mismatch (-: expected uid,gid; +:actual)\n" - "-%s\n+%s\n", - T[i].in, T[i].result, diag); + "-%s\n+%s\n", + T[i].in, T[i].result, diag); fail = 1; } }