summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-28 12:25:03 +0000
committermarkm <markm@FreeBSD.org>2002-04-28 12:25:03 +0000
commited297fee6f35d61a79fc22fd342e2b634c2c7a5f (patch)
treee3e5507442b28bb49b5f5f45782df3b68dbf62c3 /usr.bin/ncal
parent2ddedfffabf98bc262befbc79ad5d81b0e89754f (diff)
downloadFreeBSD-src-ed297fee6f35d61a79fc22fd342e2b634c2c7a5f.zip
FreeBSD-src-ed297fee6f35d61a79fc22fd342e2b634c2c7a5f.tar.gz
Easy warns fixes; constify.
Diffstat (limited to 'usr.bin/ncal')
-rw-r--r--usr.bin/ncal/ncal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ncal/ncal.c b/usr.bin/ncal/ncal.c
index 35d883a..e10f45a 100644
--- a/usr.bin/ncal/ncal.c
+++ b/usr.bin/ncal/ncal.c
@@ -64,8 +64,8 @@ struct weekdays {
/* The switches from Julian to Gregorian in some countries */
static struct djswitch {
- char *cc; /* Country code according to ISO 3166 */
- char *nm; /* Name of country */
+ const char *cc; /* Country code according to ISO 3166 */
+ const char *nm; /* Name of country */
date dt; /* Last day of Julian calendar */
} switches[] = {
{"AL", "Albania", {1912, 11, 30}},
@@ -193,7 +193,7 @@ main(int argc, char *argv[])
int flag_orthodox = 0; /* use wants Orthodox easter */
int flag_easter = 0; /* use wants easter date */
char *cp; /* character pointer */
- char *locale; /* locale to get country code */
+ const char *locale; /* locale to get country code */
/*
* Use locale to determine the country code,
OpenPOWER on IntegriCloud