summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/names.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-07-10 11:53:01 +0000
committernicm <nicm@openbsd.org>2012-07-10 11:53:01 +0000
commit7d053cf95f3066c6e73307ead04fc57226a3af39 (patch)
treeefeaa09d389b020f6bce2de45058037a32cbbf0e /usr.bin/tmux/names.c
parentInstead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in the (diff)
downloadwireguard-openbsd-7d053cf95f3066c6e73307ead04fc57226a3af39.tar.xz
wireguard-openbsd-7d053cf95f3066c6e73307ead04fc57226a3af39.zip
xfree is not particularly helpful, remove it. From Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/names.c')
-rw-r--r--usr.bin/tmux/names.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c
index 64fc973137f..290946c94ab 100644
--- a/usr.bin/tmux/names.c
+++ b/usr.bin/tmux/names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: names.c,v 1.15 2012/04/11 07:45:30 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.16 2012/07/10 11:53:01 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -20,6 +20,7 @@
#include <ctype.h>
#include <libgen.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -73,12 +74,12 @@ window_name_callback(unused int fd, unused short events, void *data)
wname = parse_window_name(name + 1);
else
wname = parse_window_name(name);
- xfree(name);
+ free(name);
}
if (w->active->fd == -1) {
xasprintf(&name, "%s[dead]", wname);
- xfree(wname);
+ free(wname);
wname = name;
}
@@ -86,7 +87,7 @@ window_name_callback(unused int fd, unused short events, void *data)
window_set_name(w, wname);
server_status_window(w);
}
- xfree(wname);
+ free(wname);
}
char *
@@ -122,6 +123,6 @@ parse_window_name(const char *in)
if (*name == '/')
name = basename(name);
name = xstrdup(name);
- xfree(copy);
+ free(copy);
return (name);
}