From 2b6d00f533f71027a5b076d0cbd50847640c8ec2 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Thu, 13 Aug 2015 14:43:25 +0000 Subject: 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. --- cpukit/score/include/sys/timetc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/include') 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; /* -- cgit v1.2.3