svn commit: r249806 - head/usr.bin/touch
Eitan Adler
eadler at FreeBSD.org
Tue Apr 23 13:03:18 UTC 2013
Author: eadler
Date: Tue Apr 23 13:03:17 2013
New Revision: 249806
URL: http://svnweb.freebsd.org/changeset/base/249806
Log:
Constify where appropriate.
Reported by: emaste
Approved by: cperciva (mentor)
MFC After: 3 days
Modified:
head/usr.bin/touch/touch.c
Modified: head/usr.bin/touch/touch.c
==============================================================================
--- head/usr.bin/touch/touch.c Tue Apr 23 13:03:14 2013 (r249805)
+++ head/usr.bin/touch/touch.c Tue Apr 23 13:03:17 2013 (r249806)
@@ -61,7 +61,7 @@ static void stime_arg2(const char *, int
static void stime_darg(const char *, struct timeval *);
static void stime_file(const char *, struct timeval *);
static int timeoffset(const char *);
-static void usage(char *);
+static void usage(const char *);
int
main(int argc, char *argv[])
@@ -414,7 +414,7 @@ stime_file(const char *fname, struct tim
}
static void
-usage(char *myname)
+usage(const char *myname)
{
fprintf(stderr, "usage: %s [-A [-][[hh]mm]SS] [-achm] [-r file] "
"[-t [[CC]YY]MMDDhhmm[.SS]]\n"
More information about the svn-src-all
mailing list