Author: delphij
Date: Fri Feb  1 07:40:46 2013
New Revision: 246199
URL: http://svnweb.freebsd.org/changeset/base/246199

Log:
  MFC r245048:
  
  Constify arguments.  While I'm there, also add a static for usage().

Modified:
  stable/9/usr.bin/apply/apply.c
Directory Properties:
  stable/9/usr.bin/apply/   (props changed)

Modified: stable/9/usr.bin/apply/apply.c
==============================================================================
--- stable/9/usr.bin/apply/apply.c      Fri Feb  1 07:38:26 2013        
(r246198)
+++ stable/9/usr.bin/apply/apply.c      Fri Feb  1 07:40:46 2013        
(r246199)
@@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
 
 #define EXEC   "exec "
 
-static int     exec_shell(const char *, char *, char *);
+static int     exec_shell(const char *, const char *, const char *);
 static void    usage(void);
 
 int
@@ -222,7 +222,7 @@ main(int argc, char *argv[])
  *     arguments.
  */
 static int
-exec_shell(const char *command, char *use_shell, char *use_name)
+exec_shell(const char *command, const char *use_shell, const char *use_name)
 {
        pid_t pid;
        int omask, pstat;
@@ -250,7 +250,7 @@ exec_shell(const char *command, char *us
        return(pid == -1 ? -1 : pstat);
 }
 
-void
+static void
 usage(void)
 {
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to