* mdocml: do not assign pointers to literal strings to variables that
@ 2011-09-20 13:47 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2011-09-20 13:47 UTC (permalink / raw)
To: source
Log Message:
-----------
do not assign pointers to literal strings
to variables that might be changed;
from kristaps@
Modified Files:
--------------
mdocml:
mdoc_man.c
Revision Data
-------------
Index: mdoc_man.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_man.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lmdoc_man.c -Lmdoc_man.c -u -p -r1.1 -r1.2
--- mdoc_man.c
+++ mdoc_man.c
@@ -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 *);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-20 13:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-20 13:47 mdocml: do not assign pointers to literal strings to variables that schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).