aboutsummaryrefslogtreecommitdiffstats
path: root/extension/time.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-07-25 22:56:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-07-25 22:56:37 +0300
commit40eefdd931066129d0bb2f6144a0ec7741c6cc2b (patch)
tree7f1cd006b2f53d7c03f778dfc275ee7de1895276 /extension/time.c
parent4bb85f0f0e221c158b1a81af286acb422834c0fd (diff)
downloadegawk-40eefdd931066129d0bb2f6144a0ec7741c6cc2b.tar.gz
egawk-40eefdd931066129d0bb2f6144a0ec7741c6cc2b.tar.bz2
egawk-40eefdd931066129d0bb2f6144a0ec7741c6cc2b.zip
Remove translation of errno strings from API.
Diffstat (limited to 'extension/time.c')
-rw-r--r--extension/time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/time.c b/extension/time.c
index eb42eee2..60e569a8 100644
--- a/extension/time.c
+++ b/extension/time.c
@@ -97,7 +97,7 @@ do_gettimeofday(int nargs, awk_value_t *result)
#else
/* no way to retrieve system time on this platform */
curtime = -1;
- update_ERRNO_string("gettimeofday: not supported on this platform", 1);
+ update_ERRNO_string("gettimeofday: not supported on this platform");
#endif
return make_number(curtime, result);
@@ -121,13 +121,13 @@ do_sleep(int nargs, awk_value_t *result)
lintwarn(ext_id, "sleep: called with too many arguments");
if (! get_argument(0, AWK_NUMBER, &num)) {
- update_ERRNO_string("sleep: missing required numeric argument", 1);
+ update_ERRNO_string("sleep: missing required numeric argument");
return make_number(-1, result);
}
secs = num.num_value;
if (secs < 0) {
- update_ERRNO_string("sleep: argument is negative", 1);
+ update_ERRNO_string("sleep: argument is negative");
return make_number(-1, result);
}
@@ -154,7 +154,7 @@ do_sleep(int nargs, awk_value_t *result)
#else
/* no way to sleep on this platform */
rc = -1;
- update_ERRNO_str("sleep: not supported on this platform", 1);
+ update_ERRNO_str("sleep: not supported on this platform");
#endif
return make_number(rc, result);