386BSD 0.1 development
[unix-history] / usr / src / usr.bin / telnet / commands.c
index 4880a22..1d8e6a8 100644 (file)
@@ -2012,6 +2012,7 @@ encrypt_cmd(argc, argv)
 #endif
 
 #if    defined(unix) && defined(TN3270)
 #endif
 
 #if    defined(unix) && defined(TN3270)
+char *oflgs[] = { "read-only", "write-only", "read-write" };
     static void
 filestuff(fd)
     int fd;
     static void
 filestuff(fd)
     int fd;
@@ -2038,7 +2039,7 @@ filestuff(fd)
        perror("fcntl");
        return;
     }
        perror("fcntl");
        return;
     }
-    printf("\tFlags are 0x%x: %s\n", res, decodeflags(res));
+    printf("\tFlags are 0x%x: %s\n", res, oflgs[res]);
 }
 #endif /* defined(unix) && defined(TN3270) */
 
 }
 #endif /* defined(unix) && defined(TN3270) */