From 911b3d27fc7258cec5eb5415ae5cf24641a058da Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 15 Apr 2007 16:39:18 +0000 Subject: [PATCH] Take gcc's suggestion regarding adding parenthesis --- example/cdchange.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/cdchange.c b/example/cdchange.c index f3420367..d4360f7a 100644 --- a/example/cdchange.c +++ b/example/cdchange.c @@ -1,5 +1,5 @@ /* - $Id: cdchange.c,v 1.5 2007/03/07 04:35:47 rocky Exp $ + $Id: cdchange.c,v 1.6 2007/04/15 16:39:18 rocky Exp $ Copyright (C) 2005, 2006, 2007 Rocky Bernstein @@ -56,7 +56,7 @@ main(int argc, const char *argv[]) if (argc > 2) { errno = 0; i_sleep = strtol(argv[2], (char **)NULL, 10); - if ( (LONG_MIN == i_sleep || LONG_MAX == i_sleep && errno != 0) ) { + if ( (LONG_MIN == i_sleep || LONG_MAX == i_sleep) && errno != 0 ) { printf("Invalid sleep parameter %s\n", argv[2]); printf("Error reported back from strtol: %s\n", strerror(errno)); return 2;