mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 01:00:14 +00:00
* string/argz-extract.c (__argz_extract): Add de-consting cast for
setting results. * string/argz-next.c (__argz_next): Likewise.
This commit is contained in:
parent
62ee0979f4
commit
531e4bca8e
@ -1,6 +1,10 @@
|
|||||||
1998-09-05 Roland McGrath <roland@baalperazim.frob.com>
|
1998-09-05 Roland McGrath <roland@baalperazim.frob.com>
|
||||||
|
|
||||||
|
* string/argz-extract.c (__argz_extract): Add de-consting cast for
|
||||||
|
setting results.
|
||||||
|
|
||||||
* string/argz.h (argz_next): Add de-consting cast for return.
|
* string/argz.h (argz_next): Add de-consting cast for return.
|
||||||
|
* string/argz-next.c (__argz_next): Likewise.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
|
* sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
|
||||||
Don't add netinet/udp.h, netinet/ip_icmp.h here.
|
Don't add netinet/udp.h, netinet/ip_icmp.h here.
|
||||||
|
@ -28,7 +28,7 @@ __argz_extract (const char *argz, size_t len, char **argv)
|
|||||||
while (len > 0)
|
while (len > 0)
|
||||||
{
|
{
|
||||||
size_t part_len = strlen (argz);
|
size_t part_len = strlen (argz);
|
||||||
*argv++ = argz;
|
*argv++ = (char *) argz;
|
||||||
argz += part_len + 1;
|
argz += part_len + 1;
|
||||||
len -= part_len + 1;
|
len -= part_len + 1;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ __argz_next (const char *argz, size_t argz_len, const char *entry)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (argz_len > 0)
|
if (argz_len > 0)
|
||||||
return argz;
|
return (char *) argz;
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user