X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetpass.c;h=a8238fb2b0f36a930f67aea1c18014c2f9a2aed1;hp=cca32f621c182afd39877afb387be1c4761aa855;hb=09470876aa753a96fa312296ed3c39ba761f3dd2;hpb=a428afdfc7347e10e7e95faf719682e9283622b7 diff --git a/sbr/getpass.c b/sbr/getpass.c index cca32f6..a8238fb 100644 --- a/sbr/getpass.c +++ b/sbr/getpass.c @@ -34,7 +34,10 @@ */ #include +#include /* for calloc() */ #include +#include /* for ttyname() */ +#include "h/mh.h" /* for adios() */ #define PASSWORD_LEN 128 @@ -43,10 +46,10 @@ #endif char * -getpass(char *prompt) +getpass(const char *prompt) { struct termios oterm, term; - char ch; + int ch; char *p, *ttystring, *buf; FILE *fout, *fin;