tdeal. - wmutils - X windows manipulation utilities
(HTM) git clone git://z3bra.org/wmutils
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6368cdb0e4108ed814bb87f26257e5951203fea4
(DIR) parent 7723d4fac234c20276627bb58d4bf09aa03f8e74
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 2 Dec 2014 19:34:32 +0100
deal.
Diffstat:
M Makefile | 2 +-
M wname.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -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
(DIR) diff --git a/wname.c b/wname.c
t@@ -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]);
t@@ -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;