Added const to clean up compiler warnings.
authorwtc%netscape.com
Sat, 06 Jan 2001 05:26:24 +0000
changeset 1661 eb08bce8ec8cc41869964c5918a155f84935b5b8
parent 1660 976f5f8ea7a52f5aaac48159c90ba5ab6d5ac16d
child 1662 14d8685c7f644a24c69531d53cecc9f70f8a15e7
push idunknown
push userunknown
push dateunknown
Added const to clean up compiler warnings.
pr/tests/instrumt.c
--- a/pr/tests/instrumt.c
+++ b/pr/tests/instrumt.c
@@ -104,18 +104,18 @@ static void Help(void)
 {
     printf("Help? ... Ha!\n");
 }    
 
 static void ListCounters(void)
 {
     PR_DEFINE_COUNTER( qh );
     PR_DEFINE_COUNTER( rh );
-    char *qn, *rn, *dn;
-    char **qname = &qn, **rname = &rn, **desc = &dn;
+    const char *qn, *rn, *dn;
+    const char **qname = &qn, **rname = &rn, **desc = &dn;
     PRUint32    tCtr;
 
     PR_INIT_COUNTER_HANDLE( qh, NULL );
     PR_FIND_NEXT_COUNTER_QNAME(qh, qh );
     while ( qh != NULL )
     {
         PR_INIT_COUNTER_HANDLE( rh, NULL );
         PR_FIND_NEXT_COUNTER_RNAME(rh, rh, qh );
@@ -132,18 +132,18 @@ static void ListCounters(void)
     }
     return;    
 } /* end ListCounters() */
 
 static void ListTraces(void)
 {
     PR_DEFINE_TRACE( qh );
     PR_DEFINE_TRACE( rh );
-    char *qn, *rn, *dn;
-    char **qname = &qn, **rname = &rn, **desc = &dn;
+    const char *qn, *rn, *dn;
+    const char **qname = &qn, **rname = &rn, **desc = &dn;
 
     PR_INIT_TRACE_HANDLE( qh, NULL );
     PR_FIND_NEXT_TRACE_QNAME(qh, qh );
     while ( qh != NULL )
     {
         PR_INIT_TRACE_HANDLE( rh, NULL );
         PR_FIND_NEXT_TRACE_RNAME(rh, rh, qh );
         while ( rh != NULL )