aboutsummaryrefslogtreecommitdiff
path: root/src/appl/simple/client/sim_client.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2017-08-23 17:45:02 -0400
committerGreg Hudson <ghudson@mit.edu>2017-09-11 11:21:35 -0400
commit795bcbfab036d9ffdafddc48b6159afd90c1b92e (patch)
tree90c35987059a54972cd2d9f95f13438cd51ad504 /src/appl/simple/client/sim_client.c
parent54e58755368b58ba5894a14c1d02626da42d8003 (diff)
downloadkrb5-795bcbfab036d9ffdafddc48b6159afd90c1b92e.zip
krb5-795bcbfab036d9ffdafddc48b6159afd90c1b92e.tar.gz
krb5-795bcbfab036d9ffdafddc48b6159afd90c1b92e.tar.bz2
Fix AIX build issues
In k5-platform.h, only test for SHARED and define the finalizer as static if we don't expect linker options to be used for finalizers. SHARED is not a robust test (it isn't defined when building objects for shared libraries on AIX, OSF/1, or sometimes IRIX because they don't use separate PIC objects), and as linker finalizer options are only applied when shared libraries are created, we don't have to worry about finalizers happening for static libraries. In expand_path.c, remove the unnecessary structure tag from "struct token" as it conflicts with <net/if_arp.h> on AIX. In localaddr.c, initialize output parameters at the beginning of get_ifreq_array(). Otherwise, gcc cannot be sure that they are always set when get_ifreq_array() returns 0, because we use errno as a return value in one case. Also remove two unused variables. Use socklen_t instead of int for socket lengths in sim_client.c and sim_client.h. Based on patches from Tony Reix. ticket: 8608 (new)
Diffstat (limited to 'src/appl/simple/client/sim_client.c')
-rw-r--r--src/appl/simple/client/sim_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c
index bd3c38c..cda7d22 100644
--- a/src/appl/simple/client/sim_client.c
+++ b/src/appl/simple/client/sim_client.c
@@ -62,7 +62,7 @@ int
main(int argc, char *argv[])
{
int sock, i;
- unsigned int len;
+ socklen_t len;
int flags = 0; /* flags for sendto() */
struct servent *serv;
struct hostent *host;