Skip to content

Commit

Permalink
Fix MSDOS build.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Jul 26, 2017
1 parent a5326fd commit e31e1bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ edit_ifile(ifile)
/*
* See if LESSOPEN specifies an "alternate" file to open.
*/
altpipe = get_altpipe(ifile);
altpipe = get_altpipe(ifile);
if (altpipe != NULL)
{
/*
Expand Down Expand Up @@ -437,7 +437,7 @@ edit_ifile(ifile)
#endif
#if HAVE_STAT_INO
/* Remember the i-number and device of the opened file. */
if (strcmp(open_filename, "-") != 0)
if (strcmp(open_filename, "-") != 0)
{
struct stat statbuf;
int r = stat(open_filename, &statbuf);
Expand Down
4 changes: 2 additions & 2 deletions filename.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,13 +856,13 @@ open_altfile(filename, pf, pfd)
#endif
}
if (*lessopen == '-')
{
{
/*
* Lessopen preprocessor will accept "-" as a filename.
*/
lessopen++;
} else
{
{
if (strcmp(filename, "-") == 0)
return (NULL);
}
Expand Down
2 changes: 1 addition & 1 deletion lessecho.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "less.h"

static char *version = "$Revision: 1.14 $";
static char *version = "$Revision: 1.15 $";

static int quote_all = 0;
static char openquote = '"';
Expand Down
1 change: 1 addition & 0 deletions screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ static HANDLE con_out_save = INVALID_HANDLE_VALUE; /* previous console */
static HANDLE con_out_ours = INVALID_HANDLE_VALUE; /* our own */
HANDLE con_out = INVALID_HANDLE_VALUE; /* current console */

extern int utf_mode;
extern int quitting;
static void win32_init_term();
static void win32_deinit_term();
Expand Down
3 changes: 2 additions & 1 deletion version.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ v508 7/19/17 Fix bugs when using LESSOPEN to read stdin.
v509 7/19/17 Fix another stdin bug.
v510 7/20/17 Fix bug in determining when to reopen a file.
v511 7/25/17 Fix bugs in recent MSDOS changes (thanks to Jason Hood).
v512 7/26/17 Fix MSDOS build.
*/

char version[] = "511";
char version[] = "512";

0 comments on commit e31e1bf

Please sign in to comment.