(logerror): The version from libcommon.a logs to a file, which is
inappropriate for this program. Log to stderr instead. (program): Unused, remove.
This commit is contained in:
parent
d59bc20516
commit
cda6f0e7cc
1 changed files with 11 additions and 2 deletions
|
@ -45,6 +45,7 @@
|
||||||
#else
|
#else
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
|
@ -63,8 +64,6 @@
|
||||||
#include "prototypes.h"
|
#include "prototypes.h"
|
||||||
#include "optlist.h"
|
#include "optlist.h"
|
||||||
|
|
||||||
s_char program[] = "file";
|
|
||||||
|
|
||||||
static void comminit(int fd);
|
static void comminit(int fd);
|
||||||
static int make(char *filename);
|
static int make(char *filename);
|
||||||
static void file_sct_init(coord x, coord y, s_char *ptr);
|
static void file_sct_init(coord x, coord y, s_char *ptr);
|
||||||
|
@ -258,6 +257,16 @@ file_sct_init(coord x, coord y, s_char *ptr)
|
||||||
sp->sct_dist_y = y;
|
sp->sct_dist_y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
logerror(s_char *format, ...)
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
|
||||||
|
va_start(ap, format);
|
||||||
|
vfprintf(stderr, format, ap);
|
||||||
|
va_end(ap);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
log_last_commands(void)
|
log_last_commands(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue