From 78f045749f10397c93b703dcfced19641e852e28 Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Sat, 28 Aug 2010 19:38:52 -0300 Subject: [PATCH] uemacs: Add more two options to the usage output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added + and + to the usage output. Also fixed the following warning: main.c: In function ‘main’: main.c:121: warning: ‘gline’ may be used uninitialized in this function Signed-off-by: Thiago Farina Signed-off-by: Linus Torvalds --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 24ee40a..4a5487d 100644 --- a/main.c +++ b/main.c @@ -92,6 +92,8 @@ void usage(int status) { printf("Usage: %s filename\n", PROGRAM_NAME); printf(" or: %s [options]\n\n", PROGRAM_NAME); + fputs(" + go to end of buffer n\n", stdout); + fputs(" + go to line n\n", stdout); fputs(" --help display this help and exit\n", stdout); fputs(" --version output version information and exit\n", stdout); @@ -116,7 +118,7 @@ int main(int argc, char **argv) int basec; /* c stripped of meta character */ int viewflag; /* are we starting in view mode? */ int gotoflag; /* do we need to goto a line at start? */ - int gline; /* if so, what line? */ + int gline = 0; /* if so, what line? */ int searchflag; /* Do we need to search at start? */ int saveflag; /* temp store for lastflag */ int errflag; /* C error processing? */