[hackers] [lsw] 0x%lx only || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sat, 4 Jun 2011 20:34:10 +0200 (CEST)

changeset: 7:c188467037e5
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat Jun 04 19:34:05 2011 +0100
files: lsw.c
description:
0x%lx only

diff -r 337aee7f4736 -r c188467037e5 lsw.c
--- a/lsw.c Sat Jun 04 19:27:32 2011 +0100
+++ b/lsw.c Sat Jun 04 19:34:05 2011 +0100
@@ -35,7 +35,7 @@
 
         if(i == argc)
                 lsw(DefaultRootWindow(dpy));
- while(i < argc)
+ else while(i < argc)
                 lsw(strtol(argv[i++], NULL, 0));
 
         XCloseDisplay(dpy);
@@ -55,7 +55,7 @@
                 if(XGetWindowAttributes(dpy, win, &wa) && !wa.override_redirect) {
                         getname(wins[i], buf, sizeof buf);
                         if(lflag)
- printf("0x%07lx %s\n", wins[i], buf);
+ printf("0x%lx %s\n", wins[i], buf);
                         else if(*buf)
                                 puts(buf);
                 }
Received on Sat Jun 04 2011 - 20:34:10 CEST

This archive was generated by hypermail 2.2.0 : Sat Jun 04 2011 - 20:36:05 CEST