diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-06-20 13:13:40 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-07-07 13:29:44 -0600 |
commit | 9b86a269bd3e508bb1ebe6040bdca141e0d6aee5 (patch) | |
tree | 2e2c72b898d85c326a26878243b083452cef9adf /pp_sys.c | |
parent | 01ec34b5d8c7075801bdb8ca8364cbe2027147dd (diff) | |
download | perl-9b86a269bd3e508bb1ebe6040bdca141e0d6aee5.tar.gz |
pp_sys.c: Use macro instead of reinventing it
The Strerror macro is defined properly to handle either case here.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -3667,13 +3667,7 @@ S_dooneliner(pTHX_ const char *cmd, const char *filename) ; e++) { /* you don't see this */ - const char * const errmsg = -#ifdef HAS_SYS_ERRLIST - sys_errlist[e] -#else - strerror(e) -#endif - ; + const char * const errmsg = Strerror(e) ; if (!errmsg) break; if (instr(s, errmsg)) { |