diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 14:06:16 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 14:06:16 +0100 |
| commit | 149a2049b27eb22cb679b9b4bc8da568fc3b2533 (patch) | |
| tree | ab84b68d30bde35665c993c2870200645dbd7111 /gluhncheck.c | |
| parent | Fork into gluhncheck (diff) | |
| download | gluhncheck-1.0.1.tar.gz gluhncheck-1.0.1.tar.bz2 gluhncheck-1.0.1.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | gluhncheck.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |
