From 35423b5f43d65bec3f5afd6e0e6ef85d4f843250 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 2 Apr 1999 00:12:30 +0000 Subject: * rpc_commondata.c: Add initializers to prevent lossage on systems that don't deal with common blocks in libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11339 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/rpc/ChangeLog | 5 +++++ src/lib/rpc/rpc_commondata.c | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'src/lib/rpc') diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog index 198431169..337bd03c4 100644 --- a/src/lib/rpc/ChangeLog +++ b/src/lib/rpc/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 1 19:11:50 1999 Tom Yu + + * rpc_commondata.c: Add initializers to prevent lossage on systems + that don't deal with common blocks in libraries. + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/lib/rpc/rpc_commondata.c b/src/lib/rpc/rpc_commondata.c index c44333b5b..9391f5193 100644 --- a/src/lib/rpc/rpc_commondata.c +++ b/src/lib/rpc/rpc_commondata.c @@ -30,12 +30,15 @@ #include /* * This file should only contain common data (global data) that is exported - * by public interfaces + * by public interfaces. + * + * Actually initialized to prevent creation of common blocks, which + * can be problematic on some architectures. */ -struct opaque_auth _null_auth; +struct opaque_auth _null_auth = {0}; #ifdef FD_SETSIZE -fd_set svc_fdset; +fd_set svc_fdset = {0}; #else -int svc_fds; +int svc_fds = 0; #endif /* def FD_SETSIZE */ -struct rpc_createerr rpc_createerr; +struct rpc_createerr rpc_createerr = {0}; -- cgit