1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-11-05 03:47:17 -05:00

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>
This commit is contained in:
Thiago Farina 2010-08-28 19:38:52 -03:00 committed by Linus Torvalds
parent 7622263b45
commit 78f045749f

4
main.c
View File

@ -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? */