From f1bd3807aed0c2d3db49b49b74a62349e6d2ee54 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 13 May 2009 23:29:45 +0000 Subject: Everything supported has working vsnprintf. --- status.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'status.c') diff --git a/status.c b/status.c index 9fef8d5b..1f60256b 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.78 2009-05-13 23:27:00 nicm Exp $ */ +/* $Id: status.c,v 1.79 2009-05-13 23:29:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -439,18 +439,7 @@ out: size_t status_width(struct winlink *wl) { -#ifdef HAVE_VSNPRINTF return (xsnprintf(NULL, 0, "%d:%s ", wl->idx, wl->window->name)); -#else - char *s; - size_t n; - - xasprintf(&s, "%d:%s ", wl->idx, wl->window->name); - n = strlen(s); - xfree(s); - - return (n); -#endif } char * -- cgit