svn commit: r245048 - head/usr.bin/apply

Xin LI delphij at FreeBSD.org
Fri Jan 4 23:44:23 UTC 2013


Author: delphij
Date: Fri Jan  4 23:44:22 2013
New Revision: 245048
URL: http://svnweb.freebsd.org/changeset/base/245048

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

Modified:
  head/usr.bin/apply/apply.c

Modified: head/usr.bin/apply/apply.c
==============================================================================
--- head/usr.bin/apply/apply.c	Fri Jan  4 20:44:17 2013	(r245047)
+++ head/usr.bin/apply/apply.c	Fri Jan  4 23:44:22 2013	(r245048)
@@ -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)
 {
 


More information about the svn-src-head mailing list