Module Name: src Committed By: christos Date: Thu Jan 12 18:42:53 UTC 2017
Modified Files: src/include/arpa: ftp.h telnet.h Log Message: Welcome to the constant age! To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/include/arpa/ftp.h cvs rdiff -u -r1.12 -r1.13 src/include/arpa/telnet.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/arpa/ftp.h diff -u src/include/arpa/ftp.h:1.6 src/include/arpa/ftp.h:1.7 --- src/include/arpa/ftp.h:1.6 Thu Aug 7 05:44:12 2003 +++ src/include/arpa/ftp.h Thu Jan 12 13:42:53 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: ftp.h,v 1.6 2003/08/07 09:44:12 agc Exp $ */ +/* $NetBSD: ftp.h,v 1.7 2017/01/12 18:42:53 christos Exp $ */ /* * Copyright (c) 1983, 1989, 1993 @@ -54,7 +54,7 @@ #define TYPE_L 4 /* local byte size */ #ifdef FTP_NAMES -char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" }; +const char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" }; #endif /* @@ -64,7 +64,7 @@ char *typenames[] = {"0", "ASCII", "EBC #define FORM_T 2 /* telnet format effectors */ #define FORM_C 3 /* carriage control (ASA) */ #ifdef FTP_NAMES -char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" }; +const char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" }; #endif /* @@ -74,7 +74,7 @@ char *formnames[] = {"0", "Nonprint", " #define STRU_R 2 /* record structure */ #define STRU_P 3 /* page structure */ #ifdef FTP_NAMES -char *strunames[] = {"0", "File", "Record", "Page" }; +const char *strunames[] = {"0", "File", "Record", "Page" }; #endif /* @@ -84,7 +84,7 @@ char *strunames[] = {"0", "File", "Reco #define MODE_B 2 /* block */ #define MODE_C 3 /* compressed */ #ifdef FTP_NAMES -char *modenames[] = {"0", "Stream", "Block", "Compressed" }; +const char *modenames[] = {"0", "Stream", "Block", "Compressed" }; #endif /* Index: src/include/arpa/telnet.h diff -u src/include/arpa/telnet.h:1.12 src/include/arpa/telnet.h:1.13 --- src/include/arpa/telnet.h:1.12 Tue Jan 24 12:13:59 2006 +++ src/include/arpa/telnet.h Thu Jan 12 13:42:53 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: telnet.h,v 1.12 2006/01/24 17:13:59 christos Exp $ */ +/* $NetBSD: telnet.h,v 1.13 2017/01/12 18:42:53 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -231,11 +231,11 @@ extern const char *telopts[NTELOPTS+1]; 0 #ifdef SLC_NAMES -char *slc_names[] = { +const char *slc_names[] = { SLC_NAMELIST }; #else -extern char *slc_names[]; +extern const char *slc_names[]; #define SLC_NAMES SLC_NAMELIST #endif