summaryrefslogtreecommitdiffstats
path: root/usr.bin/ee
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
committerarchie <archie@FreeBSD.org>1998-12-06 22:58:23 +0000
commit167c036e91fb24a62d627d16a2f3afa6d875c9e2 (patch)
treee40a696092a51458b052ff258b3700d51fc2ca09 /usr.bin/ee
parent3f56407712318be6faa0b98ad8db4b5a83ef4c93 (diff)
downloadFreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.zip
FreeBSD-src-167c036e91fb24a62d627d16a2f3afa6d875c9e2.tar.gz
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
Diffstat (limited to 'usr.bin/ee')
-rw-r--r--usr.bin/ee/Makefile1
-rw-r--r--usr.bin/ee/ee.c10
2 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/ee/Makefile b/usr.bin/ee/Makefile
index 0848847..859d53b 100644
--- a/usr.bin/ee/Makefile
+++ b/usr.bin/ee/Makefile
@@ -2,6 +2,7 @@ CFLAGS+= -DCAP -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
-DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DSLCT_HDR
PROG= ee
+CFLAGS+=-Wall
LINKS= ${BINDIR}/ee ${BINDIR}/ree
MLINKS= ee.1 ree.1
DPADD= ${LIBNCURSES} ${LIBMYTINFO}
diff --git a/usr.bin/ee/ee.c b/usr.bin/ee/ee.c
index 485afea..bb38c70 100644
--- a/usr.bin/ee/ee.c
+++ b/usr.bin/ee/ee.c
@@ -52,7 +52,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: ee.c,v 1.10 1998/04/30 12:49:11 ache Exp $";
+ "$Id: ee.c,v 1.11 1998/10/01 21:18:18 obrien Exp $";
#endif /* not lint */
char *ee_copyright_message =
@@ -64,7 +64,7 @@ char *ee_long_notice[] = {
"copyright. All rights are reserved."
};
-char *version = "@(#) ee, version 1.3 $Revision: 1.10 $";
+char *version = "@(#) ee, version 1.3 $Revision: 1.11 $";
#ifdef NCURSE
#include "new_curse.h"
@@ -1897,7 +1897,7 @@ char *cmd_str;
int number;
int i;
char *ptr;
- char *direction;
+ char *direction = NULL;
struct text *t_line;
ptr = cmd_str;
@@ -1968,7 +1968,7 @@ char *arguments[];
{
char *buff;
int count;
- struct files *temp_names;
+ struct files *temp_names = NULL;
char *name;
char *ptr;
@@ -3192,7 +3192,7 @@ struct menu_entries menu_list[];
int counter;
int length;
int input;
- int temp;
+ int temp = 0;
int list_size;
int top_offset; /* offset from top where menu items start */
int vert_pos; /* vertical position */
OpenPOWER on IntegriCloud