From ad7d593b0e54d808b9245faaa0f8171e70fb2068 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Mon, 23 Feb 2015 14:57:10 +0000 Subject: [PATCH] fix typo git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38361 72102866-910b-0410-8b05-ffd578937521 --- EcAlerter.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/EcAlerter.m b/EcAlerter.m index 89b9dd7..0b69f7c 100644 --- a/EcAlerter.m +++ b/EcAlerter.m @@ -235,10 +235,12 @@ replaceFields(NSDictionary *fields, NSString *template) { NSUserDefaults *d; NSDictionary *c; + BOOL ok; d = [EcProc cmdDefaults]; c = [d dictionaryForKey: @"Alerter"]; - return [self configureWithDefaults: c]; + ok = [self configureWithDefaults: c]; + return ok; } - (BOOL) configureWithDefaults: (NSDictionary*)c @@ -475,7 +477,7 @@ replaceFields(NSDictionary *fields, NSString *template) NSLog(@"ActiveTimes='%@' with missing HH:MM", obj); return NO; } - if (1 != c) m = 0; + if (1 == c) m = 0; if (h < 0 || h > 23) { NSLog(@"ActiveTimes='%@' with hour out of range", obj); @@ -494,7 +496,7 @@ replaceFields(NSDictionary *fields, NSString *template) NSLog(@"ActiveTimes='%@' with missing HH:MM", obj); return NO; } - if (1 != c) m = 0; + if (1 == c) m = 0; if (h < 0 || h > 24 || (24 == h && 0 != m)) { NSLog(@"ActiveTimes='%@' with hour out of range", obj);