mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
* resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
mark const. (cmd): Mark as const.
This commit is contained in:
parent
545f1b1177
commit
cc2f0a2bb9
@ -1,6 +1,8 @@
|
|||||||
2005-12-20 Ulrich Drepper <drepper@redhat.com>
|
2005-12-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* resolv/res_hconf.c (cmd): Mark as const.
|
* resolv/res_hconf.c (arg_service_list): Reduce size of svcs and
|
||||||
|
mark const.
|
||||||
|
(cmd): Mark as const.
|
||||||
(parse_line): Mark c as pointer to const.
|
(parse_line): Mark c as pointer to const.
|
||||||
|
|
||||||
* misc/getusershell.c (initshells): Remove unnecessary tests.
|
* misc/getusershell.c (initshells): Remove unnecessary tests.
|
||||||
|
@ -114,10 +114,10 @@ arg_service_list (const char *fname, int line_num, const char *args,
|
|||||||
const char *start;
|
const char *start;
|
||||||
size_t len;
|
size_t len;
|
||||||
size_t i;
|
size_t i;
|
||||||
static struct
|
static const struct
|
||||||
{
|
{
|
||||||
const char * name;
|
const char name[6];
|
||||||
enum Name_Service service;
|
int16_t service;
|
||||||
} svcs[] =
|
} svcs[] =
|
||||||
{
|
{
|
||||||
{"bind", SERVICE_BIND},
|
{"bind", SERVICE_BIND},
|
||||||
|
Loading…
Reference in New Issue
Block a user