From 74887ef8316dddcca7a9e64c17c605cf18429cce Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 11 Jan 1996 17:46:48 +0000 Subject: [PATCH] * krsh.c, krlogin.c: (main): Ultrix cc does not support automatic aggregate initiailzation of structures. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7309 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/krlogin.c | 3 ++- src/appl/bsd/krsh.c | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index f6ab0efe1..6945cedaf 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 11 12:40:08 1996 Ezra Peisach (epeisach@paris) + + * krsh.c, krlogin.c: (main): Ultrix cc does not support automatic + aggregate initiailzation of structures. + Thu Jan 11 11:27:04 1996 Ezra Peisach * krcp.c (error): Convert to use varargs. diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 5e4c4352d..3483f7940 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -309,7 +309,7 @@ main(argc, argv) #endif struct passwd *pwd; struct servent *sp; - struct servent defaultservent = {0,0,0,0}; + struct servent defaultservent; int uid, options = 0; #ifdef POSIX_SIGNALS struct sigaction sa; @@ -326,6 +326,7 @@ main(argc, argv) #endif int debug_port = 0; + memset(&defaultservent, 0, sizeof(struct servent)); if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; diff --git a/src/appl/bsd/krsh.c b/src/appl/bsd/krsh.c index 0f0ed633e..8aaa588ca 100644 --- a/src/appl/bsd/krsh.c +++ b/src/appl/bsd/krsh.c @@ -130,7 +130,7 @@ main(argc, argv0) fd_set readfrom, ready; int one = 1; struct servent *sp; - struct servent defaultservent = {0,0,0,0}; + struct servent defaultservent; #ifdef POSIX_SIGNALS sigset_t omask, igmask; @@ -144,7 +144,8 @@ main(argc, argv0) int fflag = 0, Fflag = 0, Aflag = 0; #endif /* KERBEROS */ int debug_port = 0; - + + memset(&defaultservent, 0, sizeof(struct servent)); if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; -- 2.26.2