aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extension/ChangeLog5
-rw-r--r--extension/time.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 4d504fb1..09c88d31 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * time.c (RETURN): Remove obsolete define.
+ (do_sleep): Change update_ERRNO_str argument to request translation.
+
2012-06-12 Arnold D. Robbins <arnold@skeeve.com>
Revise API:
diff --git a/extension/time.c b/extension/time.c
index a12a05d6..ba8578c3 100644
--- a/extension/time.c
+++ b/extension/time.c
@@ -51,8 +51,6 @@ int plugin_is_GPL_compatible;
#include <time.h>
#endif
-#define RETURN return tmp_number((AWKNUM) 0)
-
/*
* Returns time since 1/1/1970 UTC as a floating point value; should
* have sub-second precision, but the actual precision will vary based
@@ -150,7 +148,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", 0);
+ update_ERRNO_str("sleep: not supported on this platform", 1);
#endif
return make_number(rc, result);