aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-10-13 14:45:51 +0100
committerRon Yorston <rmy@pobox.com>2015-10-13 14:45:51 +0100
commit8e509f11bceeec419abc718300bef7422d1fee4c (patch)
treefdfbc752ad94102e3613a5d7254f14a93eaf7f56 /runit
parent420f5edfe7676fe6e7cddbbf15c04649d096e422 (diff)
parent4d0c1ea4784c9844f8468d97ca5c26d3c70f9921 (diff)
downloadbusybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.gz
busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.bz2
busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'runit')
-rw-r--r--runit/runsv.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index d941e897d..6cf5bcc29 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -49,16 +49,11 @@ static void gettimeofday_ns(struct timespec *ts)
49#else 49#else
50static void gettimeofday_ns(struct timespec *ts) 50static void gettimeofday_ns(struct timespec *ts)
51{ 51{
52 if (sizeof(struct timeval) == sizeof(struct timespec) 52 BUILD_BUG_ON(sizeof(struct timeval) != sizeof(struct timespec));
53 && sizeof(((struct timeval*)ts)->tv_usec) == sizeof(ts->tv_nsec) 53 BUILD_BUG_ON(sizeof(((struct timeval*)ts)->tv_usec) != sizeof(ts->tv_nsec));
54 ) { 54 /* Cheat */
55 /* Cheat */ 55 gettimeofday((void*)ts, NULL);
56 gettimeofday((void*)ts, NULL); 56 ts->tv_nsec *= 1000;
57 ts->tv_nsec *= 1000;
58 } else {
59 extern void BUG_need_to_implement_gettimeofday_ns(void);
60 BUG_need_to_implement_gettimeofday_ns();
61 }
62} 57}
63#endif 58#endif
64 59
@@ -114,7 +109,7 @@ struct globals {
114 109
115static void fatal2_cannot(const char *m1, const char *m2) 110static void fatal2_cannot(const char *m1, const char *m2)
116{ 111{
117 bb_perror_msg_and_die("%s: fatal: cannot %s%s", dir, m1, m2); 112 bb_perror_msg_and_die("%s: fatal: can't %s%s", dir, m1, m2);
118 /* was exiting 111 */ 113 /* was exiting 111 */
119} 114}
120static void fatal_cannot(const char *m) 115static void fatal_cannot(const char *m)
@@ -124,7 +119,7 @@ static void fatal_cannot(const char *m)
124} 119}
125static void fatal2x_cannot(const char *m1, const char *m2) 120static void fatal2x_cannot(const char *m1, const char *m2)
126{ 121{
127 bb_error_msg_and_die("%s: fatal: cannot %s%s", dir, m1, m2); 122 bb_error_msg_and_die("%s: fatal: can't %s%s", dir, m1, m2);
128 /* was exiting 111 */ 123 /* was exiting 111 */
129} 124}
130static void warn_cannot(const char *m) 125static void warn_cannot(const char *m)