Permalink
Browse files

fix error in comparison

  • Loading branch information...
1 parent 6d47390 commit 9d742d5081b417281e835b986b9cd06a70a78f05 @falconindy falconindy committed Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 wakeup.c
View
@@ -164,7 +164,7 @@ static int
parse_timespec(int optind, int argc, char **argv, struct timespec_t *ts)
{
while(optind < argc) {
- if(parse_timefragment(argv[optind], ts) < 0) {
+ if(parse_timefragment(argv[optind], ts) != 0) {
fprintf(stderr, "failed to parse time: %s\n", argv[optind]);
return 1;
}

0 comments on commit 9d742d5

Please sign in to comment.