ref: f76c4bb1f5884aaa603dbf744919b5caef6792ec
parent: e4f34808f798be609e27a1e7c48d288791fccb60
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Sep 11 15:17:12 EDT 2017
winwatch: show windows with empty labels (thanks jpm)
--- a/sys/src/cmd/winwatch.c
+++ b/sys/src/cmd/winwatch.c
@@ -117,7 +117,7 @@
n = atoi(pd[i].name);
if(n == mywinid)
continue;
- if(readfile(label, sizeof(label), "/dev/wsys/%d/label", n) <= 0)
+ if(readfile(label, sizeof(label), "/dev/wsys/%d/label", n) < 0)
continue;
if(exclude != nil && regexec(exclude,label,nil,0))
continue;
--
⑨