diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-08-28 19:38:52 -0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-29 08:15:23 -0700 |
commit | 78f045749f10397c93b703dcfced19641e852e28 (patch) | |
tree | 5b7dd34f6a09c529a58c9b64f57f7835f3b0f32d | |
parent | 7622263b457be5cc46ebd1747dcc3faa46faa9bf (diff) | |
download | uemacs-78f045749f10397c93b703dcfced19641e852e28.tar.gz |
uemacs: Add more two options to the usage output.
Added + and +<n> 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 <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(" +<n> 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? */ |