projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da0df47
)
rtc: remove useless code in "RTC is in UTC" detection
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 10 Aug 2010 11:06:06 +0000
(13:06 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 10 Aug 2010 11:06:06 +0000
(13:06 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/rtc.c
patch
|
blob
|
history
diff --git
a/libbb/rtc.c
b/libbb/rtc.c
index fcd6c64d71fa0939f7da9c7381d47dc1a2bda753..97d18ed53c551eaa526b4f879b88ef8a6fe98601 100644
(file)
--- a/
libbb/rtc.c
+++ b/
libbb/rtc.c
@@
-22,13
+22,6
@@
int FAST_FUNC rtc_adjtime_is_utc(void)
char buffer[128];
while (fgets(buffer, sizeof(buffer), f)) {
- int len = strlen(buffer);
-
- while (len && isspace(buffer[len - 1]))
- len--;
-
- buffer[len] = 0;
-
if (strncmp(buffer, "UTC", 3) == 0) {
utc = 1;
break;