=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/options.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/tmux/options.c 2009/09/21 07:00:09 1.3 +++ src/usr.bin/tmux/options.c 2009/09/21 14:56:03 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.3 2009/09/21 07:00:09 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.4 2009/09/21 14:56:03 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -98,7 +98,7 @@ 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 @@ o->type = OPTIONS_STRING; xvasprintf(&o->str, fmt, ap); va_end(ap); + return (o); } char * @@ -129,7 +130,7 @@ 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 @@ o->type = OPTIONS_NUMBER; o->num = value; - + return (o); } long long