dtlogin: coverity fixes

This commit is contained in:
Peter Howkins
2018-04-13 00:54:04 +01:00
parent 4e9dc6c50b
commit 13d3e1db50
14 changed files with 52 additions and 60 deletions

View File

@@ -94,10 +94,8 @@ from the X Consortium.
static char auth_name[256];
static int auth_name_len;
XdmPrintDataHex (s, a, l)
char *s;
char *a;
int l;
void
XdmPrintDataHex(const char *s, const char *a, int l)
{
int i;
@@ -117,14 +115,14 @@ XdmPrintKey (s, k)
#endif
#ifdef XDMCP
XdmPrintArray8Hex (s, a)
char *s;
ARRAY8Ptr a;
void
XdmPrintArray8Hex(const char *s, ARRAY8Ptr a)
{
XdmPrintDataHex (s, (char *) a->data, a->length);
}
#endif
void
XdmInitAuth (name_len, name)
#if NeedWidePrototypes
unsigned int name_len;