Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/arpa Welcome to the constant age!



details:   https://anonhg.NetBSD.org/src/rev/99d7507e227e
branches:  trunk
changeset: 820629:99d7507e227e
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 12 18:42:53 2017 +0000

description:
Welcome to the constant age!

diffstat:

 include/arpa/ftp.h    |  10 +++++-----
 include/arpa/telnet.h |   6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (68 lines):

diff -r 8d56856bc1ae -r 99d7507e227e include/arpa/ftp.h
--- a/include/arpa/ftp.h        Thu Jan 12 18:40:02 2017 +0000
+++ b/include/arpa/ftp.h        Thu Jan 12 18:42:53 2017 +0000
@@ -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 @@
 #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 @@
 #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 @@
 #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
 
 /*
diff -r 8d56856bc1ae -r 99d7507e227e include/arpa/telnet.h
--- a/include/arpa/telnet.h     Thu Jan 12 18:40:02 2017 +0000
+++ b/include/arpa/telnet.h     Thu Jan 12 18:42:53 2017 +0000
@@ -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 @@
                        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
 



Home | Main Index | Thread Index | Old Index