summaryrefslogtreecommitdiffstats
path: root/examples/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'examples/standalone')
-rw-r--r--examples/standalone/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/standalone/timer.c b/examples/standalone/timer.c
index 834cc9a49e..8fd38b222c 100644
--- a/examples/standalone/timer.c
+++ b/examples/standalone/timer.c
@@ -113,7 +113,7 @@ typedef struct tid_8xx_cpmtimer_s {
void setPeriod (tid_8xx_cpmtimer_t *hwp, ulong interval);
-static char *usage = "\n[q, b, e, ?] ";
+static const char usage[] = "\n[q, b, e, ?] ";
int timer (int argc, char * const argv[])
{
@@ -186,7 +186,7 @@ int timer (int argc, char * const argv[])
/* clear all events */
*hwp->terp = (CPMT_EVENT_CAP | CPMT_EVENT_REF);
- printf (usage);
+ puts(usage);
running = 0;
while ((c = getc()) != 'q') {
if (c == 'b') {
@@ -255,7 +255,7 @@ int timer (int argc, char * const argv[])
} else {
printf ("\nEnter: q - quit, b - start timer, e - stop timer, ? - get status\n");
}
- printf (usage);
+ puts(usage);
}
if (running) {
printf ("Stopping timer\n");
OpenPOWER on IntegriCloud