diff options
author | 2011-09-20 13:47:59 +0000 | |
---|---|---|
committer | 2011-09-20 13:47:59 +0000 | |
commit | 96e96a54469215ff37ff3abb52d4d46ea0ad1ed6 (patch) | |
tree | 6ebab156a24eccded99c32540adc3e19b6345be8 /usr.bin/mandoc/mdoc_man.c | |
parent | When advancing the left margin, .RS also needs to reset the right margin (diff) | |
download | wireguard-openbsd-96e96a54469215ff37ff3abb52d4d46ea0ad1ed6.tar.xz wireguard-openbsd-96e96a54469215ff37ff3abb52d4d46ea0ad1ed6.zip |
do not assign pointers to literal strings
to variables that might be changed;
from kristaps@
Diffstat (limited to 'usr.bin/mandoc/mdoc_man.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index d4cdd5f2b41..af39f5ae68b 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.1 2011/09/17 14:45:22 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.2 2011/09/20 13:47:59 schwarze Exp $ */ /* * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> * @@ -31,8 +31,8 @@ struct manact { int (*cond)(DECL_ARGS); int (*pre)(DECL_ARGS); void (*post)(DECL_ARGS); - char *prefix; - char *suffix; + const char *prefix; + const char *suffix; }; static void print_word(const char *); |