diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-11-27 01:20:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-11-27 01:20:12 +0000 |
commit | 3218d55b950ccb1e6422cb6abf6fd4a780170e43 (patch) | |
tree | 8f042f7273e8aef5a9a34bcef19b7240d3c56b40 /nis/ypclnt.c | |
parent | d9fc1ec727b77e215f6d56736bebf8d68fc0b195 (diff) | |
download | glibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.zip glibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.tar.gz glibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.tar.bz2 |
* nis/nis_table.c (__create_ib_request): Use strdupa instead of
variable size array.
(RPCTIMEOUT): Mark as const.
(RPCTIMEOUT, UDPTIMEOUT): Mark as const.
Diffstat (limited to 'nis/ypclnt.c')
-rw-r--r-- | nis/ypclnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c index 68ab3cf..5fc931c 100644 --- a/nis/ypclnt.c +++ b/nis/ypclnt.c @@ -46,8 +46,8 @@ struct dom_binding }; typedef struct dom_binding dom_binding; -static struct timeval RPCTIMEOUT = {25, 0}; -static struct timeval UDPTIMEOUT = {5, 0}; +static const struct timeval RPCTIMEOUT = {25, 0}; +static const struct timeval UDPTIMEOUT = {5, 0}; static int const MAXTRIES = 2; static char ypdomainname[NIS_MAXNAMELEN + 1]; __libc_lock_define_initialized (static, ypbindlist_lock) |