From 2c698c5eb4294783e821e986c74e55b63507c790 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Thu, 14 Jun 2012 20:09:57 -0400 Subject: Minor cleanups in extension/time.c. --- extension/ChangeLog | 5 +++++ extension/time.c | 4 +--- 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 + + * time.c (RETURN): Remove obsolete define. + (do_sleep): Change update_ERRNO_str argument to request translation. + 2012-06-12 Arnold D. Robbins 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 #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); -- cgit v1.2.3