summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1999-04-02 00:12:30 +0000
committerTom Yu <tlyu@mit.edu>1999-04-02 00:12:30 +0000
commit35423b5f43d65bec3f5afd6e0e6ef85d4f843250 (patch)
tree66ae1f7d5be53972b3f8531ffdcb8db6d8ae8f38 /src/lib
parent7742838cb6efb29eb03340991ded681cd74cd0c2 (diff)
downloadkrb5-35423b5f43d65bec3f5afd6e0e6ef85d4f843250.tar.gz
krb5-35423b5f43d65bec3f5afd6e0e6ef85d4f843250.tar.xz
krb5-35423b5f43d65bec3f5afd6e0e6ef85d4f843250.zip
* 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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/rpc/ChangeLog5
-rw-r--r--src/lib/rpc/rpc_commondata.c13
2 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog
index 1984311696..337bd03c47 100644
--- a/src/lib/rpc/ChangeLog
+++ b/src/lib/rpc/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr 1 19:11:50 1999 Tom Yu <tlyu@mit.edu>
+
+ * 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 <tytso@rsts-11.mit.edu>
* 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 c44333b5b5..9391f51938 100644
--- a/src/lib/rpc/rpc_commondata.c
+++ b/src/lib/rpc/rpc_commondata.c
@@ -30,12 +30,15 @@
#include <gssrpc/rpc.h>
/*
* 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};