]> andersk Git - moira.git/commitdiff
posixify source
authormar <mar>
Fri, 22 Oct 1993 18:10:41 +0000 (18:10 +0000)
committermar <mar>
Fri, 22 Oct 1993 18:10:41 +0000 (18:10 +0000)
clients/moira/menu.c

index fdc45ef5db15fb92964c4658917f191b87102595..87222a1d82c625c0ef1d1fe6712290f9340c05e6 100644 (file)
@@ -25,17 +25,19 @@ static char rcsid_menu_c[] = "$Header$";
 #include <mit-copyright.h>
 #include <sys/types.h>
 #include <stdio.h>
+#include <string.h>
 #include <signal.h>
 #include <curses.h>
 #ifdef POSIX
+#include <unistd.h>
 #include <termios.h>
 #endif /* POSIX */
 #include <ctype.h>
-#include <string.h>
 #ifndef sun
 #include <varargs.h>
 #endif
 #include <com_err.h>
+#include <moira.h>
 #include "menu.h"
 
 #ifndef __STDC__
@@ -57,6 +59,10 @@ extern char *whoami;
 FILE *log_file = (FILE *) NULL;                /* file stream of log file */
 int more_flg = 1;
 
+#ifdef POSIX
+extern char *malloc();
+#endif
+
 /* Structure for holding current displayed menu */
 struct menu_screen {
     WINDOW *ms_screen;         /* Window for this menu */
@@ -160,7 +166,6 @@ make_ms(length)
     int length;
 {
     struct menu_screen *ms;
-    char *malloc();
 
     if (MAX_TITLE + length + MIN_INPUT > LINES) {
        fputs("Menu too big!\n", stderr);
This page took 0.03615 seconds and 5 git commands to generate.