summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/sys
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2015-08-13 14:43:25 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-12 07:04:10 +0200
commit2b6d00f533f71027a5b076d0cbd50847640c8ec2 (patch)
treee089f11207d089f735518462dd11efea62c74fc6 /cpukit/score/include/sys
parenttimecounter: Merge FreeBSD change r286701 (diff)
downloadrtems-2b6d00f533f71027a5b076d0cbd50847640c8ec2.tar.bz2
timecounter: Merge FreeBSD change r304285
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.) Update #3175.
Diffstat (limited to 'cpukit/score/include/sys')
-rw-r--r--cpukit/score/include/sys/timetc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/include/sys/timetc.h b/cpukit/score/include/sys/timetc.h
index 88e90dedac..73e63f7333 100644
--- a/cpukit/score/include/sys/timetc.h
+++ b/cpukit/score/include/sys/timetc.h
@@ -51,7 +51,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;
/*