dtlogin: Change to ANSI function definitions

This commit is contained in:
Peter Howkins
2018-06-28 04:16:41 +01:00
parent 806257b154
commit 2d60124e03
10 changed files with 45 additions and 79 deletions

View File

@@ -92,13 +92,11 @@ from the X Consortium.
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;
@@ -107,14 +105,13 @@ int MitInitAuth (name_len, name)
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));