wmutils

X windows manipulation utilities
git clone git://z3bra.org/wmutils
Log | Files | Refs | LICENSE

commit 6368cdb0e4108ed814bb87f26257e5951203fea4
parent 7723d4fac234c20276627bb58d4bf09aa03f8e74
Author: z3bra <willy@mailoo.org>
Date:   Tue Dec  2 19:34:32 2014

deal.

Diffstat:
 Makefile | 2 +-
 wname.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,7 +3,7 @@ MANPREFIX:=$(PREFIX)/share/man CC ?= cc LD = $(CC) -CFLAGS += -std=c99 -pedantic -ansi -Wall -Os +CFLAGS += -std=c99 -pedantic -Wall -Os LDFLAGS += -lxcb HDR = arg.h diff --git a/wname.c b/wname.c @@ -47,7 +47,7 @@ get_title (xcb_window_t win) int main (int argc, char **argv) { - int r = 0; + int i, r = 0; if (argc < 2) usage(argv[0]); @@ -56,7 +56,7 @@ int main (int argc, char **argv) if (xcb_connection_has_error(conn = xcb_connect(NULL, NULL))) errx(1, "error connecting to X"); - for (int i=1; i < argc; i++) + for (i=1; i < argc; i++) r += get_title(strtoul(argv[i], NULL, 16)); return r;