"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmdline.c" between
multitail-6.2.1.tgz and multitail-6.4.tgz

About: multitail lets you view one or multiple files like the original tail program.

cmdline.c  (multitail-6.2.1.tgz):cmdline.c  (multitail-6.4.tgz)
skipping to change at line 695 skipping to change at line 695
else if (strcmp(argv[loop], "-n") == 0) else if (strcmp(argv[loop], "-n") == 0)
{ {
initial_n_lines_tail = get_value_arg("-n", argv[++loop], VAL_ZERO_POSITIVE); initial_n_lines_tail = get_value_arg("-n", argv[++loop], VAL_ZERO_POSITIVE);
} }
else if (strcmp(argv[loop], "-N") == 0) else if (strcmp(argv[loop], "-N") == 0)
{ {
initial_n_lines_tail = min_n_bufferlines = get_value_arg( "-n", argv[++loop], VAL_ZERO_POSITIVE); initial_n_lines_tail = min_n_bufferlines = get_value_arg( "-n", argv[++loop], VAL_ZERO_POSITIVE);
} }
else if (strcmp(argv[loop], "-b") == 0) else if (strcmp(argv[loop], "-b") == 0)
{ {
tab_width = get_value_arg("-b", argv[++loop], VAL_ZERO_PO SITIVE); tab_width = get_value_arg("-b", argv[++loop], VAL_POSITIV E);
} }
else if (strcmp(argv[loop], "-u") == 0) else if (strcmp(argv[loop], "-u") == 0)
{ {
update_interval = get_value_arg("-u", argv[++loop], VAL_Z ERO_POSITIVE); update_interval = get_value_arg("-u", argv[++loop], VAL_Z ERO_POSITIVE);
} }
else if (argv[loop][0] == '-' && toupper(argv[loop][1]) == 'R') else if (argv[loop][0] == '-' && toupper(argv[loop][1]) == 'R')
{ {
if (argv[loop][1] == 'R') if (argv[loop][1] == 'R')
do_diff = 1; do_diff = 1;
skipping to change at line 930 skipping to change at line 930
if (marker_of_other_window || lb[nfd].marker_of_o ther_window) if (marker_of_other_window || lb[nfd].marker_of_o ther_window)
lb[nfd].marker_of_other_window = 1; lb[nfd].marker_of_other_window = 1;
else if (no_marker_of_other_window == 1) else if (no_marker_of_other_window == 1)
lb[nfd].marker_of_other_window = -1; /* o verride global configfile setting */ lb[nfd].marker_of_other_window = -1; /* o verride global configfile setting */
no_marker_of_other_window = marker_of_other_windo w = 0; no_marker_of_other_window = marker_of_other_windo w = 0;
cur = &pi[nfd]; cur = &pi[nfd];
nfd++; nfd++;
} }
memset(cur, 0x00, sizeof(proginfo)); memset(cur, 0x00, sizeof(proginfo));
/* see if file exists */ /* see if file exists */
if (check_interval == 0 && is_cmd == 0 && is_stdin == 0 & & is_sock == 0 && retry == 0 && stat64(dummy, &buf) == -1) if (check_interval == 0 && is_cmd == 0 && is_stdin == 0 & & is_sock == 0 && retry == 0 && stat64(dummy, &buf) == -1)
{ {
fprintf(stderr, "Error opening file %s (%s)\n", d ummy, strerror(errno)); fprintf(stderr, "Error opening file %s (%s)\n", d ummy, strerror(errno));
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
/* init. struct. for this file */ /* init. struct. for this file */
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS