aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/ChangeLog2
-rw-r--r--extension/time.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 939a6aed..9f60bd07 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -3,6 +3,8 @@
* readdir.c: New file.
* Makefile.am (readdir): New extension.
+ * time.c: Fix all calls to update_ERRNO_string.
+
2012-07-20 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am:
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);