mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
tmux has its own warnx so there is no need for logit (and this gets rid of a
warning).
This commit is contained in:
@ -94,13 +94,6 @@
|
|||||||
|
|
||||||
#if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET)
|
#if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET)
|
||||||
|
|
||||||
/*
|
|
||||||
* Some defines to make it easier to keep the code in sync with upstream.
|
|
||||||
* getopt opterr optind optopt optreset optarg are all in defines.h which is
|
|
||||||
* pulled in by includes.h.
|
|
||||||
*/
|
|
||||||
#define warnx logit
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -110,16 +103,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
static void logit(const char *fmt, ...) {
|
|
||||||
va_list va;
|
|
||||||
(void)fprintf(stderr, "%s: ", getprogname());
|
|
||||||
va_start(va, fmt);
|
|
||||||
(void)vfprintf(stderr, fmt, va);
|
|
||||||
va_end(va);
|
|
||||||
(void)fputc('\n', stderr);
|
|
||||||
(void)fflush(stderr);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct option {
|
struct option {
|
||||||
/* name of long option */
|
/* name of long option */
|
||||||
const char *name;
|
const char *name;
|
||||||
|
Reference in New Issue
Block a user