Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-06-06 01:40:48 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-06-06 01:40:48 +0400
commita5da131d8dc095f36140881b14a6ed20d0e157b0 (patch)
tree01059c7d2a40bd8569472e26349c8233a7f8003a /newlib/libc/argz
parent184dcf2bc384df5ed96c2f90994008605a222f6c (diff)
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.
Diffstat (limited to 'newlib/libc/argz')
-rw-r--r--newlib/libc/argz/argz_insert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/argz/argz_insert.c b/newlib/libc/argz/argz_insert.c
index 8345640c5..d0a32eca9 100644
--- a/newlib/libc/argz/argz_insert.c
+++ b/newlib/libc/argz/argz_insert.c
@@ -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;