diff options
author | 2011-09-20 13:47:55 +0000 | |
---|---|---|
committer | 2011-09-20 13:47:55 +0000 | |
commit | 5402c1b9a0d8a1e61e1a3179ed694c6923e09990 (patch) | |
tree | 93a8247c5f3428fe5a4bea791e56815b3497c7c0 /mdoc_man.c | |
parent | 230eaefdc1cd15357da254488c8718b2026f597f (diff) | |
download | mandoc-5402c1b9a0d8a1e61e1a3179ed694c6923e09990.tar.gz mandoc-5402c1b9a0d8a1e61e1a3179ed694c6923e09990.tar.zst mandoc-5402c1b9a0d8a1e61e1a3179ed694c6923e09990.zip |
do not assign pointers to literal strings
to variables that might be changed;
from kristaps@
Diffstat (limited to 'mdoc_man.c')
-rw-r--r-- | mdoc_man.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.1 2011/09/17 15:00:51 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.2 2011/09/20 13:47:55 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 *); |