mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
gkermit: Fix compilation with -Wimplicit-function-declaration
Cleaned up Makefile for consistency between packages. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
--- a/gcmdline.c
|
||||
+++ b/gcmdline.c
|
||||
@@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "gkermit.h"
|
||||
|
||||
/* Externals */
|
||||
@@ -53,7 +54,7 @@ _MYPROTOTYPE( VOID fatal, (char *) );
|
||||
_MYPROTOTYPE( VOID usage, (void) );
|
||||
|
||||
#ifndef NOGETENV
|
||||
-_MYPROTOTYPE( char * getenv, (char *) );
|
||||
+_MYPROTOTYPE( char * getenv, (const char *) );
|
||||
#define GARGC 32
|
||||
#define GBUFSIZ 256
|
||||
static char gbuf[GBUFSIZ], *gargs[GARGC], *gptr = NULL;
|
||||
--- a/gunixio.c
|
||||
+++ b/gunixio.c
|
||||
@@ -58,6 +58,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h> /* Standard input/output */
|
||||
+#include <stdlib.h>
|
||||
|
||||
#ifdef POSIX
|
||||
#include <termios.h> /* Terminal modes */
|
||||
Reference in New Issue
Block a user