Got rid of four warnings in Shantonu's new getpass.c. Needed to #include
[mmh] / sbr / getpass.c
index cca32f6..a8238fb 100644 (file)
  */
 
 #include <stdio.h>
+#include <stdlib.h>   /* for calloc() */
 #include <termios.h>
+#include <unistd.h>   /* for ttyname() */
+#include "h/mh.h"     /* for adios() */
 
 #define PASSWORD_LEN 128
 
 #endif
 
 char *
-getpass(char *prompt)
+getpass(const char *prompt)
 {
   struct termios oterm, term;
-  char ch;
+  int ch;
   char *p, *ttystring, *buf;
   FILE *fout, *fin;