]> git.sur5r.net Git - u-boot/blobdiff - examples/standalone/timer.c
cosmetic: arm: fix comments in arch/arm/lib/crt0.S
[u-boot] / examples / standalone / timer.c
index 6628b21de9073a6d402123661613a52982c44b2a..8fd38b222c987f5f5e55249050736ff80cf40faa 100644 (file)
@@ -113,9 +113,9 @@ 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 *argv[])
+int timer (int argc, char * const argv[])
 {
        cpmtimer8xx_t *cpmtimerp;       /* Pointer to the CPM Timer structure   */
        tid_8xx_cpmtimer_t hw;
@@ -186,7 +186,7 @@ int timer (int argc, char *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 *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");