[git commit master 1/1] rtc: remove useless code in "RTC is in UTC" detection

Denys Vlasenko vda.linux at googlemail.com
Tue Aug 10 11:06:06 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=d07b20ff14a934c113a53210abb8a91ac587d9a2
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/rtc.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/libbb/rtc.c b/libbb/rtc.c
index fcd6c64..97d18ed 100644
--- 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;
-- 
1.7.1



More information about the busybox-cvs mailing list