projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Got rid of four warnings in Shantonu's new getpass.c. Needed to #include
[mmh]
/
sbr
/
getpass.c
diff --git
a/sbr/getpass.c
b/sbr/getpass.c
index
cca32f6
..
a8238fb
100644
(file)
--- a/
sbr/getpass.c
+++ b/
sbr/getpass.c
@@
-34,7
+34,10
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+#include <stdlib.h> /* for calloc() */
#include <termios.h>
#include <termios.h>
+#include <unistd.h> /* for ttyname() */
+#include "h/mh.h" /* for adios() */
#define PASSWORD_LEN 128
#define PASSWORD_LEN 128
@@
-43,10
+46,10
@@
#endif
char *
#endif
char *
-getpass(char *prompt)
+getpass(const char *prompt)
{
struct termios oterm, term;
{
struct termios oterm, term;
- char ch;
+ int ch;
char *p, *ttystring, *buf;
FILE *fout, *fin;
char *p, *ttystring, *buf;
FILE *fout, *fin;