Remove unused init_unsigned_integer function.
As pointed out by Bernhard Reutner-Fischer, this function is unused since the fix for PR 53796 in November 2017. 2018-09-07 Janne Blomqvist <jb@gcc.gnu.org> * runtime/environ.c (init_unsigned_integer): Remove. From-SVN: r264163
This commit is contained in:
parent
785425e152
commit
d4c0eb58b7
@ -1,3 +1,7 @@
|
|||||||
|
2018-09-07 Janne Blomqvist <jb@gcc.gnu.org>
|
||||||
|
|
||||||
|
* runtime/environ.c (init_unsigned_integer): Remove.
|
||||||
|
|
||||||
2018-09-05 Hans-Peter Nilsson <hp@axis.com>
|
2018-09-05 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* io/async.h: Use __gthread_mutex_t, not pthread_mutex_t.
|
* io/async.h: Use __gthread_mutex_t, not pthread_mutex_t.
|
||||||
|
@ -98,25 +98,6 @@ init_integer (variable * v)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Initialize an integer environment variable which has to be positive. */
|
|
||||||
|
|
||||||
static void
|
|
||||||
init_unsigned_integer (variable * v)
|
|
||||||
{
|
|
||||||
char *p, *q;
|
|
||||||
|
|
||||||
p = getenv (v->name);
|
|
||||||
if (p == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (q = p; *q; q++)
|
|
||||||
if (!isdigit (*q))
|
|
||||||
return;
|
|
||||||
|
|
||||||
*v->var = atoi (p);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Initialize a boolean environment variable. We only look at the first
|
/* Initialize a boolean environment variable. We only look at the first
|
||||||
letter of the value. */
|
letter of the value. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user