mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use option print function for info messages as well.
This commit is contained in:
		@@ -98,7 +98,7 @@ options_remove(struct options *oo, const char *name)
 | 
			
		||||
	xfree(o);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void printflike3
 | 
			
		||||
struct options_entry *printflike3
 | 
			
		||||
options_set_string(struct options *oo, const char *name, const char *fmt, ...)
 | 
			
		||||
{
 | 
			
		||||
	struct options_entry	*o;
 | 
			
		||||
@@ -115,6 +115,7 @@ options_set_string(struct options *oo, const char *name, const char *fmt, ...)
 | 
			
		||||
	o->type = OPTIONS_STRING;
 | 
			
		||||
	xvasprintf(&o->str, fmt, ap);
 | 
			
		||||
	va_end(ap);
 | 
			
		||||
	return (o);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char *
 | 
			
		||||
@@ -129,7 +130,7 @@ options_get_string(struct options *oo, const char *name)
 | 
			
		||||
	return (o->str);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
struct options_entry *
 | 
			
		||||
options_set_number(struct options *oo, const char *name, long long value)
 | 
			
		||||
{
 | 
			
		||||
	struct options_entry	*o;
 | 
			
		||||
@@ -143,7 +144,7 @@ options_set_number(struct options *oo, const char *name, long long value)
 | 
			
		||||
 | 
			
		||||
	o->type = OPTIONS_NUMBER;
 | 
			
		||||
	o->num = value;
 | 
			
		||||
 | 
			
		||||
	return (o);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
long long
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user