Don't call printf with no format string.
This commit is contained in:
parent
f816121f8e
commit
911669a1de
@ -32,7 +32,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95";
|
static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$FreeBSD$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -101,7 +105,7 @@ local_des_read_pw_string(s,max,prompt,verify)
|
|||||||
if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
|
if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
while (!ok) {
|
while (!ok) {
|
||||||
(void) printf(prompt);
|
(void) printf("%s", prompt);
|
||||||
(void) fflush(stdout);
|
(void) fflush(stdout);
|
||||||
while (!fgets(s, max, stdin));
|
while (!fgets(s, max, stdin));
|
||||||
|
|
||||||
|
@ -32,7 +32,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95";
|
static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$FreeBSD$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -101,7 +105,7 @@ local_des_read_pw_string(s,max,prompt,verify)
|
|||||||
if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
|
if (ioctl(0,TIOCSETP,(char *)&tty_state) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
while (!ok) {
|
while (!ok) {
|
||||||
(void) printf(prompt);
|
(void) printf("%s", prompt);
|
||||||
(void) fflush(stdout);
|
(void) fflush(stdout);
|
||||||
while (!fgets(s, max, stdin));
|
while (!fgets(s, max, stdin));
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ gettty(){
|
|||||||
settty(s) char *s; {
|
settty(s) char *s; {
|
||||||
clear_screen();
|
clear_screen();
|
||||||
end_screen();
|
end_screen();
|
||||||
if(s) printf(s);
|
if(s) printf("%s", s);
|
||||||
(void) fflush(stdout);
|
(void) fflush(stdout);
|
||||||
if(STTY(&inittyb) < 0)
|
if(STTY(&inittyb) < 0)
|
||||||
perror("Hack (settty)");
|
perror("Hack (settty)");
|
||||||
|
@ -205,7 +205,7 @@ rgetchar()
|
|||||||
break;
|
break;
|
||||||
#ifdef UNIX_BSD4_2
|
#ifdef UNIX_BSD4_2
|
||||||
case '\032':
|
case '\032':
|
||||||
printf(CL);
|
printf("%s", CL);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
tstp();
|
tstp();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user