aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-06 18:16:39 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-06 18:16:39 +0100
commit695fa51c80047eb25cc82e6e1630b4545a6bc0b6 (patch)
treeaaee37e1b947c40dd660dc2ccb77ac20895e13f8 /runit
parent06667f21d6d28bf3acbc12474cf52c9bc20c884b (diff)
downloadbusybox-w32-695fa51c80047eb25cc82e6e1630b4545a6bc0b6.tar.gz
busybox-w32-695fa51c80047eb25cc82e6e1630b4545a6bc0b6.tar.bz2
busybox-w32-695fa51c80047eb25cc82e6e1630b4545a6bc0b6.zip
hwclock: fix sizeof bug (used it on pointer, not array); make --systohc exact
function old new delta hwclock_main 329 428 +99 rtc_adjtime_is_utc 138 134 -4 edir 365 354 -11 read_rtc 39 23 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 99/-31) Total: 68 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r--runit/chpst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runit/chpst.c b/runit/chpst.c
index 082d72682..1a68eb755 100644
--- a/runit/chpst.c
+++ b/runit/chpst.c
@@ -104,7 +104,7 @@ static NOINLINE void edir(const char *directory_name)
104 xchdir(directory_name); 104 xchdir(directory_name);
105 dir = xopendir("."); 105 dir = xopendir(".");
106 for (;;) { 106 for (;;) {
107 RESERVE_CONFIG_BUFFER(buf, 256); 107 char buf[256];
108 char *tail; 108 char *tail;
109 int size; 109 int size;
110 110
@@ -148,7 +148,6 @@ static NOINLINE void edir(const char *directory_name)
148 break; 148 break;
149 } 149 }
150 xsetenv(d->d_name, buf); 150 xsetenv(d->d_name, buf);
151 RELEASE_CONFIG_BUFFER(buf);
152 } 151 }
153 closedir(dir); 152 closedir(dir);
154 if (fchdir(wdir) == -1) 153 if (fchdir(wdir) == -1)