Skip to content

Commit

Permalink
eliminate deprecated ATOMIC_VAR_INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 31, 2025
1 parent ad6da72 commit c7f184f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/demo/demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ static demoresult* results;

static const char DEFAULT_DEMO[] = "ixetunchdmbkywjgarvlsfqzo";

atomic_bool interrupted = ATOMIC_VAR_INIT(false);
atomic_bool interrupted = false;
// checked following demos, whether aborted, failed, or otherwise
static atomic_bool restart_demos = ATOMIC_VAR_INIT(false);
static atomic_bool restart_demos = false;

void interrupt_demo(void){
atomic_store(&interrupted, true);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/unixsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "internal.h"

// primarily drive ownership off an atomic, safely used within a signal handler
static void* _Atomic signal_nc = ATOMIC_VAR_INIT(NULL);
static void* _Atomic signal_nc;

#ifdef __MINGW32__
int block_signals(sigset_t* old_blocked_signals){
Expand Down

0 comments on commit c7f184f

Please sign in to comment.