diff options
Diffstat (limited to 'xc/programs/xdm/chooser.c')
-rw-r--r-- | xc/programs/xdm/chooser.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/xc/programs/xdm/chooser.c b/xc/programs/xdm/chooser.c index 8ecca3d4b..7331ea02a 100644 --- a/xc/programs/xdm/chooser.c +++ b/xc/programs/xdm/chooser.c @@ -1,5 +1,5 @@ /* - * $XConsortium: chooser.c,v 1.20 94/06/03 16:34:39 mor Exp kaleb $ + * $XConsortium: chooser.c,v 1.21 94/11/21 18:33:11 kaleb Exp gildea $ * Copyright (c) 1990 X Consortium @@ -188,7 +188,7 @@ int NameTableSize; static int HostnameCompare (a, b) -#if __STDC__ +#ifdef __STDC__ const void *a, *b; #else char *a, *b; @@ -199,6 +199,7 @@ HostnameCompare (a, b) static void RebuildTable (size) + int size; { char **newTable = 0; HostName *names; @@ -325,7 +326,7 @@ AddHostname (hostname, status, addr, willing) return 1; } -static +static void DisposeHostname (host) HostName *host; { @@ -336,7 +337,7 @@ DisposeHostname (host) free ((char *) host); } -static +static void RemoveHostname (host) HostName *host; { @@ -357,7 +358,7 @@ RemoveHostname (host) RebuildTable (NameTableSize); } -static +static void EmptyHostnames () { HostName *hosts, *next; @@ -434,6 +435,7 @@ ReceivePacket (closure, source, id) } } +static void RegisterHostaddr (addr, len, type) struct sockaddr *addr; int len; @@ -466,6 +468,7 @@ RegisterHostaddr (addr, len, type) * addresses on the local host. */ +static void RegisterHostname (name) char *name; { @@ -613,6 +616,7 @@ n = ifcp->ifc_len / sizeof (struct ifreq); static ARRAYofARRAY8 AuthenticationNames; +static void RegisterAuthenticationName (name, namelen) char *name; int namelen; @@ -627,13 +631,13 @@ RegisterAuthenticationName (name, namelen) memmove( authName->data, name, namelen); } +int InitXDMCP (argv) char **argv; { int soopts = 1; XdmcpHeader header; int i; - int optlen; header.version = XDM_PROTOCOL_VERSION; header.opcode = (CARD16) BROADCAST_QUERY; @@ -676,7 +680,7 @@ InitXDMCP (argv) return 1; } -Boolean +static void Choose (h) HostName *h; { @@ -863,6 +867,7 @@ static XtActionsRec app_actions[] = { }; main (argc, argv) + int argc; char **argv; { Arg position[3]; |