summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-09-25 04:06:37 +0000
committermike <mike@FreeBSD.org>2002-09-25 04:06:37 +0000
commit86a758e51be945d9e690ee0802a21bf9a667b4e8 (patch)
tree2295edf76df9065e84ea0b415c9c13ecf434f1fa /libexec/ftpd
parentb9155304da025f935d34f191093267f40e40cdd2 (diff)
downloadFreeBSD-src-86a758e51be945d9e690ee0802a21bf9a667b4e8.zip
FreeBSD-src-86a758e51be945d9e690ee0802a21bf9a667b4e8.tar.gz
Use the standardized CHAR_BIT constant instead of NBBY in userland.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpcmd.y16
-rw-r--r--libexec/ftpd/ftpd.c4
2 files changed, 10 insertions, 10 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index ec11dcd..22ae19a 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -393,16 +393,16 @@ cmd
break;
case TYPE_L:
-#if NBBY == 8
+#if CHAR_BIT == 8
if (cmd_bytesz == 8) {
reply(200,
"Type set to L (byte size 8).");
type = cmd_type;
} else
reply(504, "Byte size must be 8.");
-#else /* NBBY == 8 */
- UNIMPLEMENTED for NBBY != 8
-#endif /* NBBY == 8 */
+#else /* CHAR_BIT == 8 */
+ UNIMPLEMENTED for CHAR_BIT != 8
+#endif /* CHAR_BIT == 8 */
}
}
}
@@ -692,12 +692,12 @@ cmd
#ifdef unix
#ifdef BSD
reply(215, "UNIX Type: L%d Version: BSD-%d",
- NBBY, BSD);
+ CHAR_BIT, BSD);
#else /* BSD */
- reply(215, "UNIX Type: L%d", NBBY);
+ reply(215, "UNIX Type: L%d", CHAR_BIT);
#endif /* BSD */
#else /* unix */
- reply(215, "UNKNOWN Type: L%d", NBBY);
+ reply(215, "UNKNOWN Type: L%d", CHAR_BIT);
#endif /* unix */
}
@@ -916,7 +916,7 @@ type_code
| L
{
cmd_type = TYPE_L;
- cmd_bytesz = NBBY;
+ cmd_bytesz = CHAR_BIT;
}
| L SP byte_size
{
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 9a22f88..180f0c1 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2148,8 +2148,8 @@ statcmd(void)
if (type == TYPE_A || type == TYPE_E)
printf(", FORM: %s", formnames[form]);
if (type == TYPE_L)
-#if NBBY == 8
- printf(" %d", NBBY);
+#if CHAR_BIT == 8
+ printf(" %d", CHAR_BIT);
#else
printf(" %d", bytesize); /* need definition! */
#endif
OpenPOWER on IntegriCloud