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:
Jeff Johnston 2007-06-05 21:40:48 +00:00
parent 184dcf2bc3
commit a5da131d8d
2 changed files with 7 additions and 1 deletions

View File

@ -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>
Implement funopen, fopencookie.

View File

@ -20,6 +20,7 @@ _DEFUN (argz_insert, (argz, argz_len, before, entry),
const char *entry)
{
int len = 0;
ptrdiff_t delta;
if (before == NULL)
return argz_add(argz, argz_len, entry);
@ -31,7 +32,7 @@ _DEFUN (argz_insert, (argz, argz_len, before, entry),
before--;
/* delta will always be non-negative, and < *argz_len */
ptrdiff_t delta = before - *argz;
delta = before - *argz;
len = strlen(entry) + 1;