svn commit: r229188 - stable/9/contrib/ee
Dimitry Andric
dim at FreeBSD.org
Sun Jan 1 19:05:16 UTC 2012
Author: dim
Date: Sun Jan 1 19:05:15 2012
New Revision: 229188
URL: http://svn.freebsd.org/changeset/base/229188
Log:
MFC r228627:
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.
Modified:
stable/9/contrib/ee/ee.c
Directory Properties:
stable/9/contrib/ee/ (props changed)
Modified: stable/9/contrib/ee/ee.c
==============================================================================
--- stable/9/contrib/ee/ee.c Sun Jan 1 18:59:35 2012 (r229187)
+++ stable/9/contrib/ee/ee.c Sun Jan 1 19:05:15 2012 (r229188)
@@ -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_lengt
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
}
if (shell_fork)
{
- printf(continue_msg);
+ fputs(continue_msg, stdout);
fflush(stdout);
while ((in = getchar()) != '\n')
;
More information about the svn-src-stable-9
mailing list