2007-06-05 Christian Groessler <chris@groessler.org>
* libc/argz/argz_insert.c (delta): Move variable declaration to top of function in keeping with C89 standard.
This commit is contained in:
parent
184dcf2bc3
commit
a5da131d8d
@ -1,3 +1,8 @@
|
|||||||
|
2007-06-05 Christian Groessler <chris@groessler.org>
|
||||||
|
|
||||||
|
* libc/argz/argz_insert.c (delta): Move variable declaration
|
||||||
|
to top of function in keeping with C89 standard.
|
||||||
|
|
||||||
2007-06-04 Eric Blake <ebb9@byu.net>
|
2007-06-04 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
Implement funopen, fopencookie.
|
Implement funopen, fopencookie.
|
||||||
|
@ -20,6 +20,7 @@ _DEFUN (argz_insert, (argz, argz_len, before, entry),
|
|||||||
const char *entry)
|
const char *entry)
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
ptrdiff_t delta;
|
||||||
|
|
||||||
if (before == NULL)
|
if (before == NULL)
|
||||||
return argz_add(argz, argz_len, entry);
|
return argz_add(argz, argz_len, entry);
|
||||||
@ -31,7 +32,7 @@ _DEFUN (argz_insert, (argz, argz_len, before, entry),
|
|||||||
before--;
|
before--;
|
||||||
|
|
||||||
/* delta will always be non-negative, and < *argz_len */
|
/* delta will always be non-negative, and < *argz_len */
|
||||||
ptrdiff_t delta = before - *argz;
|
delta = before - *argz;
|
||||||
|
|
||||||
len = strlen(entry) + 1;
|
len = strlen(entry) + 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user