trim down some NBBY references. 8 bits ought to be enough for anyone.
authortedu <tedu@openbsd.org>
Fri, 26 Aug 2016 06:32:10 +0000 (06:32 +0000)
committertedu <tedu@openbsd.org>
Fri, 26 Aug 2016 06:32:10 +0000 (06:32 +0000)
libexec/ftpd/ftpcmd.y
libexec/ftpd/ftpd.c

index 80b86c6..b8bce19 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ftpcmd.y,v 1.63 2016/08/14 22:56:29 guenther Exp $    */
+/*     $OpenBSD: ftpcmd.y,v 1.64 2016/08/26 06:32:10 tedu Exp $        */
 /*     $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $   */
 
 /*
@@ -574,7 +574,7 @@ cmd
        | SYST check_login CRLF
                {
                        if ($2)
-                       reply(215, "UNIX Type: L%d", NBBY);
+                       reply(215, "UNIX Type: L8");
                }
 
                /*
@@ -833,7 +833,7 @@ type_code
        | L
                {
                        cmd_type = TYPE_L;
-                       cmd_bytesz = NBBY;
+                       cmd_bytesz = 8;
                }
        | L SP byte_size
                {
index b53cda1..723933c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ftpd.c,v 1.218 2016/08/14 22:56:29 guenther Exp $     */
+/*     $OpenBSD: ftpd.c,v 1.219 2016/08/26 06:32:10 tedu Exp $ */
 /*     $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $        */
 
 /*
@@ -1827,11 +1827,7 @@ statcmd(void)
        if (type == TYPE_A || type == TYPE_E)
                printf(", FORM: %s", formnames[form]);
        if (type == TYPE_L)
-#if NBBY == 8
-               printf(" %d", NBBY);
-#else
-               printf(" %d", bytesize);        /* need definition! */
-#endif
+               printf(" 8");
        printf("; STRUcture: %s; transfer MODE: %s\r\n",
            strunames[stru], modenames[mode]);
        ispassive = 0;