mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +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)
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * 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
 | 
			
		||||
#include <err.h>
 | 
			
		||||
#include <getopt.h>
 | 
			
		||||
@@ -110,16 +103,6 @@
 | 
			
		||||
#include <string.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 {
 | 
			
		||||
	/* name of long option */
 | 
			
		||||
	const char *name;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user