summaryrefslogtreecommitdiffstats
path: root/contrib/ee
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 14:26:16 +0000
committerdim <dim@FreeBSD.org>2011-12-17 14:26:16 +0000
commitb640df813ed53d4aa6fb85e155674f64602448c0 (patch)
tree7906caa1e71a3d273dce37d4acf4696954d8a8b9 /contrib/ee
parent11ec38a1ad0863a93ee2db598e3c6abd2e6472f4 (diff)
downloadFreeBSD-src-b640df813ed53d4aa6fb85e155674f64602448c0.zip
FreeBSD-src-b640df813ed53d4aa6fb85e155674f64602448c0.tar.gz
In contrib/ee/ee.c, fix a few warnings about format strings not being
literals. Also, change the direction argument to move_rel() from char to int; K&R function definions cause it to be promoted to an int anyway, and this way we avoid clang warning about it. MFC after: 1 week
Diffstat (limited to 'contrib/ee')
-rwxr-xr-xcontrib/ee/ee.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/ee/ee.c b/contrib/ee/ee.c
index ebc1069..70a4407 100755
--- a/contrib/ee/ee.c
+++ b/contrib/ee/ee.c
@@ -307,7 +307,7 @@ void undel_word P_((void));
void del_line P_((void));
void undel_line P_((void));
void adv_word P_((void));
-void move_rel P_((char direction, int lines));
+void move_rel P_((int direction, int lines));
void eol P_((void));
void bol P_((void));
void adv_line P_((void));
@@ -2105,10 +2105,10 @@ char *arguments[];
else if (!strcmp("-?", buff))
{
fprintf(stderr, usage0, arguments[0]);
- fprintf(stderr, usage1);
- fprintf(stderr, usage2);
- fprintf(stderr, usage3);
- fprintf(stderr, usage4);
+ fputs(usage1, stderr);
+ fputs(usage2, stderr);
+ fputs(usage3, stderr);
+ fputs(usage4, stderr);
exit(1);
}
else if ((*buff == '+') && (start_at_line == NULL))
@@ -2939,7 +2939,7 @@ while ((position < curr_line->line_length) && ((*point == 32) || (*point == 9)))
void
move_rel(direction, lines) /* move relative to current line */
-char direction;
+int direction;
int lines;
{
int i;
@@ -3242,7 +3242,7 @@ char *string; /* string containing user command */
}
if (shell_fork)
{
- printf(continue_msg);
+ fputs(continue_msg, stdout);
fflush(stdout);
while ((in = getchar()) != '\n')
;
OpenPOWER on IntegriCloud