subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1380693 - /subversion/trunk/tools/server-side/svnauthz-validate.c
Date Tue, 04 Sep 2012 15:47:36 GMT
Author: danielsh
Date: Tue Sep  4 15:47:35 2012
New Revision: 1380693

URL: http://svn.apache.org/viewvc?rev=1380693&view=rev
Log:
Fix build error.

* tools/server-side/svnauthz-validate.c
  (usage): Update signature.
  (main): Update caller.

Modified:
    subversion/trunk/tools/server-side/svnauthz-validate.c

Modified: subversion/trunk/tools/server-side/svnauthz-validate.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnauthz-validate.c?rev=1380693&r1=1380692&r2=1380693&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnauthz-validate.c (original)
+++ subversion/trunk/tools/server-side/svnauthz-validate.c Tue Sep  4 15:47:35 2012
@@ -33,9 +33,9 @@
 #include "svn_cmdline.h"
 
 static int
-usage()
+usage(argv0)
 {
-  printf("Usage:  %s FILE [USER PATH [REPOS_NAME]]\n\n", argv[0]);
+  printf("Usage:  %s FILE [USER PATH [REPOS_NAME]]\n\n", argv0);
   printf("Loads the authz file at FILE and validates its syntax.\n"
          "Optionally reports the access available to USER for PATH in\n"
          "repository REPOS_NAME.\n"
@@ -55,7 +55,7 @@ main(int argc, const char **argv)
   const char *authz_file;
 
   if (argc != 2 && argc != 4 && argc != 5)
-    return usage();
+    return usage(argv[0]);
 
   authz_file = argv[1];
 



Mime
View raw message