Re: [PATCH 02/15] cytune: remove unnecessary variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 4, 2014, at 17:49, Sami Kerola wrote:
> -				warnx(_("Invalid threshold default value: %d"),
> -				      threshold_def_val);
> -				errflg++;
> -			}
> +			if (threshold_def_val < 0 || 12 < threshold_def_val)
> +				errx(EXIT_FAILURE, ("Invalid threshold default value: %d"),

s/threshold default/default threshold/

> -				warnx(_("Invalid set timeout value: %d"),
> -				      timeout_val);
> -				errflg++;
> -			}
> +			if (timeout_val < 1 || 255 < timeout_val)
> +				errx(EXIT_FAILURE, _("Invalid set timeout value: %d"),

s/set timeout/timeout/

>  						_("Invalid default timeout value"));
> -			if (timeout_def_val < 0 || 255 < timeout_def_val) {
> -				warnx(_("Invalid default time value: %d"),
> -				      timeout_def_val);
> -				errflg++;
> -			}
> +			if (timeout_def_val < 0 || 255 < timeout_def_val)
> +				errx(EXIT_FAILURE, _("Invalid default time value: %d"),

s/time/timeout/

Benno

-- 
http://www.fastmail.fm - The professional email service

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux