Improve user feedback on password input.
Remove warnings by using K&R C prototype for callback function. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@218 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "protos.h"
|
#include "protos.h"
|
||||||
#define KERBEROS
|
#define KERBEROS
|
||||||
RCSID("$Header$");
|
RCSID("$Id$");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -33,7 +33,7 @@ char name[100];
|
|||||||
char realm[REALM_SZ + 1];
|
char realm[REALM_SZ + 1];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char SPACE_STRING[] = " ";
|
char *SPACE_STRING = " ";
|
||||||
char STRING[] = "****************";
|
char STRING[] = "****************";
|
||||||
#define MAX_PASSWD_LENGTH (sizeof(STRING))
|
#define MAX_PASSWD_LENGTH (sizeof(STRING))
|
||||||
|
|
||||||
@@ -495,7 +495,9 @@ Visibility(Widget w, XtPointer client_data, XEvent *event, Boolean *_b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
countdown(int* _t, XtIntervalId *_d)
|
countdown(_t, _d)
|
||||||
|
int* _t;
|
||||||
|
XtIntervalId *_d;
|
||||||
{
|
{
|
||||||
int *timeout = _t;
|
int *timeout = _t;
|
||||||
char buf[16];
|
char buf[16];
|
||||||
@@ -828,6 +830,10 @@ main (int argc, char **argv)
|
|||||||
XGCValues gcvalues;
|
XGCValues gcvalues;
|
||||||
char **list;
|
char **list;
|
||||||
|
|
||||||
|
srand(getpid());
|
||||||
|
for (i = 0; i < (sizeof(STRING)-2); i++)
|
||||||
|
STRING[i] = ((unsigned long)rand() % ('~' - ' ')) + ' ';
|
||||||
|
|
||||||
locked_at = time(0);
|
locked_at = time(0);
|
||||||
|
|
||||||
if ((ProgName = rindex(*argv, '/')) != 0)
|
if ((ProgName = rindex(*argv, '/')) != 0)
|
||||||
|
Reference in New Issue
Block a user