Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 39632 | Differences between
and this patch

Collapse All | Expand All

(-)src/nice.c.old (+4 lines)
Lines 108-113 Link Here
108
      if (s[0] == '-' && s[1] == '-' && ISDIGIT (s[2])
108
      if (s[0] == '-' && s[1] == '-' && ISDIGIT (s[2])
109
	  && (posix2_version () < 200112 || !getenv ("POSIXLY_CORRECT")))
109
	  && (posix2_version () < 200112 || !getenv ("POSIXLY_CORRECT")))
110
	{
110
	{
111
	  if (!getenv ("POSIXLY_CORRECT"))
112
		error (0, 0, _("`%s' option is obsolete; use `-n %s' since this will be removed in the future"), s, s+1);
111
	  if (xstrtol (&s[2], NULL, 10, &adjustment, "") != LONGINT_OK)
113
	  if (xstrtol (&s[2], NULL, 10, &adjustment, "") != LONGINT_OK)
112
	    error (EXIT_FAILURE, 0, _("invalid option `%s'"), s);
114
	    error (EXIT_FAILURE, 0, _("invalid option `%s'"), s);
113
115
Lines 119-124 Link Here
119
	       && (ISDIGIT (s[1]) || (s[1] == '+' && ISDIGIT (s[2])))
121
	       && (ISDIGIT (s[1]) || (s[1] == '+' && ISDIGIT (s[2])))
120
	       && (posix2_version () < 200112 || !getenv ("POSIXLY_CORRECT")))
122
	       && (posix2_version () < 200112 || !getenv ("POSIXLY_CORRECT")))
121
	{
123
	{
124
	  if (!getenv ("POSIXLY_CORRECT"))
125
		error (0, 0, _("`%s' option is obsolete; use `-n %s' since this will be removed in the future"), s, s);
122
	  if (s[1] == '+')
126
	  if (s[1] == '+')
123
	    ++s;
127
	    ++s;
124
	  if (xstrtol (&s[1], NULL, 10, &adjustment, "") != LONGINT_OK)
128
	  if (xstrtol (&s[1], NULL, 10, &adjustment, "") != LONGINT_OK)

Return to bug 39632