summaryrefslogtreecommitdiffstats
path: root/usr.bin/touch
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-04-23 13:03:17 +0000
committereadler <eadler@FreeBSD.org>2013-04-23 13:03:17 +0000
commit06db46a7675748f59411c34aae21b8131e3dd324 (patch)
tree70de1f9652d34e843bac1cdece562f5e174375a3 /usr.bin/touch
parentba2622c8ca4cc2b5a336f86fbf5a41a149627b24 (diff)
downloadFreeBSD-src-06db46a7675748f59411c34aae21b8131e3dd324.zip
FreeBSD-src-06db46a7675748f59411c34aae21b8131e3dd324.tar.gz
Constify where appropriate.
Reported by: emaste Approved by: cperciva (mentor) MFC After: 3 days
Diffstat (limited to 'usr.bin/touch')
-rw-r--r--usr.bin/touch/touch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index 72d703d..4439c07 100644
--- a/usr.bin/touch/touch.c
+++ b/usr.bin/touch/touch.c
@@ -61,7 +61,7 @@ static void stime_arg2(const char *, int, struct timeval *);
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 timeval *tvp)
}
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"
OpenPOWER on IntegriCloud