Constify the pointers to eventtimer and timecounter name strings.

The need for this appears as soon as you try to set the names to something
that isn't a "quoted literal".  (I'm actually confused why quoted strings
aren't a problem as well, we must have some warning disabled.)
This commit is contained in:
Ian Lepore 2015-08-13 14:43:25 +00:00
parent 6280434f9a
commit ca64e4807e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286724
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ typedef int et_deregister_cb_t(struct eventtimer *et, void *arg);
struct eventtimer {
SLIST_ENTRY(eventtimer) et_all;
/* Pointer to the next event timer. */
char *et_name;
const char *et_name;
/* Name of the event timer. */
int et_flags;
/* Set of capabilities flags: */

View File

@ -49,7 +49,7 @@ struct timecounter {
/* This mask should mask off any unimplemented bits. */
uint64_t tc_frequency;
/* Frequency of the counter in Hz. */
char *tc_name;
const char *tc_name;
/* Name of the timecounter. */
int tc_quality;
/*