tsptype is an array of character constants, declare it as such.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Sun, 26 Sep 2004 16:09:48 +0000 (16:09 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Sun, 26 Sep 2004 16:09:48 +0000 (16:09 +0000)
Submitted-by: Sascha Wildner
include/protocols/timed.h

index 6c6a05e..996e6ab 100644 (file)
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  *
  *     @(#)timed.h     8.1 (Berkeley) 6/2/93
+ * $DragonFly: src/include/protocols/timed.h,v 1.2 2004/09/26 16:09:48 joerg Exp $
  */
 
 #ifndef        _PROTOCOLS_TIMED_H_
@@ -89,7 +90,7 @@ struct tsp {
 #define        TSPTYPENUMBER           25
 
 #ifdef TSPTYPES
-char *tsptype[TSPTYPENUMBER] =
+const char *tsptype[TSPTYPENUMBER] =
   { "ANY", "ADJTIME", "ACK", "MASTERREQ", "MASTERACK", "SETTIME", "MASTERUP",
   "SLAVEUP", "ELECTION", "ACCEPT", "REFUSE", "CONFLICT", "RESOLVE", "QUIT",
   "DATE", "DATEREQ", "DATEACK", "TRACEON", "TRACEOFF", "MSITE", "MSITEREQ",