static int doWrite;
static
-writeAuth (file, auth)
- FILE *file;
- Xauth *auth;
+writeAuth (FILE *file, Xauth *auth)
{
if (debugLevel >= 15) { /* normally too verbose */
Debug ("writeAuth: doWrite = %d\n", doWrite);
* for this fd and add them to the selfhosts list.
*/
static void
-DefineSelf (fd, file, auth)
- int fd;
- FILE *file;
- Xauth *auth;
+DefineSelf (int fd, FILE *file, Xauth *auth)
{
char buf[2048];
struct ifconf ifc;
* for this fd and add them to the selfhosts list.
*/
static void
-DefineSelf (fd, file, auth)
- int fd;
+DefineSelf (int fd, int file, int auth)
{
register int n;
int len;
static void
-setAuthNumber (auth, name)
- Xauth *auth;
- char *name;
+setAuthNumber (Xauth *auth, char *name)
{
char *colon;
char *dot, *number;
}
#endif
-CloseOnFork ()
+int
+CloseOnFork (void)
{
int fd;
close (fd);
FD_ZERO (&CloseMask);
max = 0;
+
+ return 0;
}
static int pidFd;
static char auth_name[256];
static int auth_name_len;
-int MitInitAuth (name_len, name)
#if NeedWidePrototypes
- unsigned int name_len;
+int MitInitAuth (unsigned int name_len, char *name)
#else
- unsigned short name_len;
+int MitInitAuth (unsigned short name_len, char *name)
#endif /* NeedWidePrototypes */
- char *name;
{
if (name_len > 256)
name_len = 256;
return(0);
}
-Xauth *
-MitGetAuth (namelen, name)
#if NeedWidePrototypes
- unsigned int namelen;
+Xauth *
+MitGetAuth (unsigned int namelen, char *name)
#else
- unsigned short namelen;
+Xauth *
+MitGetAuth (unsigned short namelen, char *name)
#endif /* NeedWidePrototypes */
- char *name;
{
Xauth *new;
new = (Xauth *) malloc (sizeof (Xauth));
/* given an XdmcpNetaddr, returns the socket protocol family used,
e.g., AF_INET */
-int NetaddrFamily(netaddrp)
- XdmcpNetaddr netaddrp;
+int NetaddrFamily(XdmcpNetaddr netaddrp)
{
#ifdef STREAMSCONN
short family = *(short *)netaddrp;
and sets *lenp to the length of the address
or 0 if not using TCP or UDP. */
-char * NetaddrPort(netaddrp, lenp)
- XdmcpNetaddr netaddrp;
- int *lenp; /* return */
+char * NetaddrPort(XdmcpNetaddr netaddrp, int *lenp)
{
#ifdef STREAMSCONN
*lenp = 2;
/* given an XdmcpNetaddr, returns a pointer to the network address
and sets *lenp to the length of the address */
-char * NetaddrAddress(netaddrp, lenp)
- XdmcpNetaddr netaddrp;
- int *lenp; /* return */
+char * NetaddrAddress(XdmcpNetaddr netaddrp, int *lenp)
{
#ifdef STREAMSCONN
*lenp = 4;
sets *len to the number of bytes in addr.
Returns the X protocol family used, e.g., FamilyInternet */
-int ConvertAddr (saddr, len, addr)
- XdmcpNetaddr saddr;
- int *len; /* return */
- char **addr; /* return */
+int ConvertAddr (XdmcpNetaddr saddr, int *len, char **addr)
{
int retval;
return retval;
}
-addressEqual (a1, len1, a2, len2)
- XdmcpNetaddr a1, a2;
- int len1, len2;
+addressEqual (XdmcpNetaddr a1, int len1, XdmcpNetaddr a2, int len2)
{
int partlen1, partlen2;
char *part1, *part2;
#ifdef DEBUG
/*ARGSUSED*/
-PrintSockAddr (a, len) /* Debugging routine */
- struct sockaddr *a;
- int len;
+PrintSockAddr (struct sockaddr *a, int len)
{
unsigned char *t, *p;
longjmp (pingTime, 1);
}
-static int
-FileNameCompare (a, b)
#if defined(__STDC__)
- const void *a, *b;
+static int
+FileNameCompare (const char *a, const char *b)
#else
- char *a, *b;
+static int
+FileNameCompare (char *a, char *b)
#endif
{
return strcoll (*(char **)a, *(char **)b);
extern FD_TYPE WellKnownSocketsMask;
extern int WellKnownSocketsMax;
-CreateWellKnownSockets ()
+CreateWellKnownSockets (void)
{
struct sockaddr_in sock_addr;
char *name, *localHostname();
FD_SET (chooserFd, &WellKnownSocketsMask);
}
-GetChooserAddr (addr, lenp)
- char *addr;
- int *lenp;
+GetChooserAddr (char *addr, int *lenp)
{
struct sockaddr_in in_addr;
int len;
static int gotLocalHostname;
char *
-localHostname ()
+localHostname (void)
{
if (!gotLocalHostname)
{
* the logo to display in logo_pixmap
**************************************************************************/
void
-SetDtLabelAndIcon()
+SetDtLabelAndIcon(void)
{
static XmString blanks = NULL;
int i;
***************************************************************************/
void
-CloseCatalog()
+CloseCatalog(void)
{
catclose(nl_fd);
}
***************************************************************************/
void
-OpenCatalog()
+OpenCatalog(void)
{
static int initialized = 0;
char *nlspath, *newnlspath;
}
#endif
-void
-XdmInitAuth (name_len, name)
#if NeedWidePrototypes
- unsigned int name_len;
+void
+XdmInitAuth (unsigned int name_len, char *name)
#else
- unsigned short name_len;
+void
+XdmInitAuth (unsigned short name_len, char *name)
#endif /* NeedWidePrototypes */
- char *name;
{
if (name_len > 256)
name_len = 256;
*/
Xauth *
-XdmGetAuthHelper (namelen, name, includeRho)
- unsigned short namelen;
- char *name;
- int includeRho;
+XdmGetAuthHelper (unsigned short namelen, char *name, int includeRho)
{
Xauth *new;
new = (Xauth *) malloc (sizeof (Xauth));
return new;
}
-Xauth *
-XdmGetAuth (namelen, name)
#if NeedWidePrototypes
- unsigned int namelen;
+Xauth *
+XdmGetAuth (unsigned int namelen, char *name)
#else
- unsigned short namelen;
+Xauth *
+XdmGetAuth (unsigned short namelen, char *name)
#endif /* NeedWidePrototypes */
- char *name;
{
return XdmGetAuthHelper (namelen, name, TRUE);
}
#ifdef XDMCP
-void XdmGetXdmcpAuth (pdpy,authorizationNameLen, authorizationName)
- struct protoDisplay *pdpy;
#if NeedWidePrototypes
- unsigned int authorizationNameLen;
+void XdmGetXdmcpAuth (struct protoDisplay *pdpy, unsigned int authorizationNameLen, char *authorizationName)
#else
- unsigned short authorizationNameLen;
+void XdmGetXdmcpAuth (struct protoDisplay *pdpy, unsigned short authorizationNameLen, char *authorizationName)
#endif /* NeedWidePrototypes */
- char *authorizationName;
{
Xauth *fileauth, *xdmcpauth;
'A' <= c && c <= 'F' ? c - 'A' + 10 : -1)
static
-HexToBinary (key)
- char *key;
+HexToBinary (char *key)
{
char *out, *in;
int top, bottom;
* routine accepts either plain ascii strings for keys, or hex-encoded numbers
*/
-XdmGetKey (pdpy, displayID)
- struct protoDisplay *pdpy;
- ARRAY8Ptr displayID;
+XdmGetKey (struct protoDisplay *pdpy, ARRAY8Ptr displayID)
{
FILE *keys;
char line[1024], id[1024], key[1024];
}
/*ARGSUSED*/
-XdmCheckAuthentication (pdpy, displayID, authenticationName, authenticationData)
- struct protoDisplay *pdpy;
- ARRAY8Ptr displayID, authenticationName, authenticationData;
+XdmCheckAuthentication (struct protoDisplay *pdpy, ARRAY8Ptr displayID,
+ ARRAY8Ptr authenticationName, ARRAY8Ptr authenticationData)
{
XdmAuthKeyPtr incoming;