aboutsummaryrefslogtreecommitdiff
path: root/nis/ypclnt.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-27 01:20:12 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-27 01:20:12 +0000
commit3218d55b950ccb1e6422cb6abf6fd4a780170e43 (patch)
tree8f042f7273e8aef5a9a34bcef19b7240d3c56b40 /nis/ypclnt.c
parentd9fc1ec727b77e215f6d56736bebf8d68fc0b195 (diff)
downloadglibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.tar
glibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.tar.gz
glibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.tar.bz2
glibc-3218d55b950ccb1e6422cb6abf6fd4a780170e43.zip
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c
index 68ab3cfa94..5fc931c459 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)