Use PL_op_desc rather than literal strings in pp_ioctl
Nicholas Clark [Thu, 15 Dec 2005 17:26:52 +0000 (17:26 +0000)]
p4raw-id: //depot/perl@26372

pp_sys.c

index fe20ead..9edf430 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2182,7 +2182,7 @@ PP(pp_ioctl)
        s = INT2PTR(char*,retval);              /* ouch */
     }
 
-    TAINT_PROPER(optype == OP_IOCTL ? "ioctl" : "fcntl");
+    TAINT_PROPER(PL_op_desc[optype]);
 
     if (optype == OP_IOCTL)
 #ifdef HAS_IOCTL