From 9cc5f84c650971dd1e6791e22c983221ba4aaf43 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 24 Jun 2011 05:33:41 +0000 Subject: Correct extern declaration and while here, rename a variable to be pedantic. from Thomas Pfaff. ok oga@ --- kbfunc.c | 6 +++--- xevents.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kbfunc.c b/kbfunc.c index ecdf5ed..3b4e6ba 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.53 2011/05/11 13:53:51 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.54 2011/06/24 05:33:41 okan Exp $ */ #include @@ -35,7 +35,7 @@ #define KNOWN_HOSTS ".ssh/known_hosts" #define HASH_MARKER "|1|" -extern int _xev_quit; +extern sig_atomic_t xev_quit; void kbfunc_client_lower(struct client_ctx *cc, union arg *arg) @@ -491,7 +491,7 @@ kbfunc_client_freeze(struct client_ctx *cc, union arg *arg) void kbfunc_quit_wm(struct client_ctx *cc, union arg *arg) { - _xev_quit = 1; + xev_quit = 1; } void diff --git a/xevents.c b/xevents.c index 0432412..9ca53ce 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.53 2011/05/11 13:53:51 okan Exp $ + * $OpenBSD: xevents.c,v 1.54 2011/06/24 05:33:41 okan Exp $ */ /* @@ -410,14 +410,14 @@ xev_handle_expose(XEvent *ee) client_draw_border(cc); } -volatile sig_atomic_t _xev_quit = 0; +volatile sig_atomic_t xev_quit = 0; void xev_loop(void) { XEvent e; - while (_xev_quit == 0) { + while (xev_quit == 0) { XNextEvent(X_Dpy, &e); if (e.type - Randr_ev == RRScreenChangeNotify) xev_handle_randr(&e); -- cgit v1.2.3-2-gb3c3