aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:06:16 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:06:16 +0100
commit149a2049b27eb22cb679b9b4bc8da568fc3b2533 (patch)
treeab84b68d30bde35665c993c2870200645dbd7111
parentFork into gluhncheck (diff)
downloadgluhncheck-149a2049b27eb22cb679b9b4bc8da568fc3b2533.tar.gz
gluhncheck-149a2049b27eb22cb679b9b4bc8da568fc3b2533.tar.bz2
gluhncheck-149a2049b27eb22cb679b9b4bc8da568fc3b2533.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--gluhncheck.12
-rw-r--r--gluhncheck.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/gluhncheck.1 b/gluhncheck.1
index e388827..43a2cd5 100644
--- a/gluhncheck.1
+++ b/gluhncheck.1
@@ -27,7 +27,7 @@ No operands are supported.
The execution of
.B gluhncheck
is affected by environment variables that
-affects its tooltik.
+affect its toolkit.
.SH SEE ALSO
.BR luhncheck (1)
diff --git a/gluhncheck.c b/gluhncheck.c
index 56741c1..8862469 100644
--- a/gluhncheck.c
+++ b/gluhncheck.c
@@ -23,7 +23,7 @@ static GtkAccelGroup *accelgroup;
static int timer;
static const char *statustext = "";
static atomic_flag lock = ATOMIC_FLAG_INIT;
-static volatile int statusdefered = 0;
+static volatile int statusdeferred = 0;
#define DELAY {.tv_sec = 0, .tv_nsec = 500000000L}
static const struct itimerspec delay = {.it_interval = {0, 0}, .it_value = DELAY};
@@ -73,7 +73,7 @@ set_status_text(void *user_data)
while (atomic_flag_test_and_set_explicit(&lock, memory_order_acquire));
gtk_label_set_text(GTK_LABEL(status), statustext);
- statusdefered = 0;
+ statusdeferred = 0;
atomic_flag_clear(&lock);
@@ -107,8 +107,8 @@ number_changed(GtkEditable *editable, GtkWidget *button)
} else {
statustext = "Invalid number";
display = timer >= 0 ? "" : statustext;
- if (!statusdefered && timer >= 0) {
- statusdefered = 1;
+ if (!statusdeferred && timer >= 0) {
+ statusdeferred = 1;
add_idle = 1;
}
}