twatter.c: Use size_t to silence a compiler warning - wmutils - X windows manipulation utilities
(HTM) git clone git://z3bra.org/wmutils
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit fa84a88f0309e2f2979a5991a2e879213a51e98c
(DIR) parent d846ef9a200885ba204f8537821c2956224d3562
(HTM) Author: Gergely Nagy <algernon@madhouse-project.org>
Date: Fri, 12 Dec 2014 08:52:39 +0100
watter.c: Use size_t to silence a compiler warning
When compiled with -Wextra (or -Wsign-compare), we get a warning,
because strlen() returns size_t (usually unsigned), not int. Just use a
size_t to avoid that.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Diffstat:
M wattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/wattr.c b/wattr.c
t@@ -57,7 +57,7 @@ getattribute(xcb_window_t w, int attr)
int
main(int argc, char **argv)
{
- int i,c;
+ size_t i,c;
xcb_window_t w = 0;
if (argc < 2 || (strncmp(argv[1], "-h", 2) == 0)) {