Skip to content

Commit

Permalink
Fix some compiler warnings by including some headers and
Browse files Browse the repository at this point in the history
not defining our own prototype for getenv.
  • Loading branch information
apb authored and apb committed Nov 1, 2006
1 parent 2b93194 commit 7de1273
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnu/dist/gkermit/gcmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gkermit.h"

/* Externals */
Expand All @@ -53,7 +55,6 @@ _MYPROTOTYPE( VOID fatal, (char *) );
_MYPROTOTYPE( VOID usage, (void) );

#ifndef NOGETENV
_MYPROTOTYPE( char * getenv, (char *) );
#define GARGC 32
#define GBUFSIZ 256
static char gbuf[GBUFSIZ], *gargs[GARGC], *gptr = NULL;
Expand Down
2 changes: 2 additions & 0 deletions gnu/dist/gkermit/gkermit.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ char *build = "stty";
#endif /* POSIX */

#define _GKERMIT_C
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "gkermit.h"

/* Forward declarations of functions used within this module... */
Expand Down
2 changes: 2 additions & 0 deletions gnu/dist/gkermit/gunixio.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
*/

#include <stdio.h> /* Standard input/output */
#include <string.h>
#include <stdlib.h>

#ifdef POSIX
#include <termios.h> /* Terminal modes */
Expand Down

0 comments on commit 7de1273

Please sign in to comment.