fix: correct atomic pointer declaration syntax
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
@@ -27,7 +27,7 @@ struct channel_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Globals declared in looper.c */
|
/* Globals declared in looper.c */
|
||||||
extern _Atomic struct channel_t *channels;
|
extern struct channel_t *_Atomic channels;
|
||||||
extern atomic_int channel_capacity;
|
extern atomic_int channel_capacity;
|
||||||
extern atomic_int channel_count;
|
extern atomic_int channel_count;
|
||||||
extern int next_channel_id;
|
extern int next_channel_id;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* Global state (shared across files) */
|
/* Global state (shared across files) */
|
||||||
_Atomic struct channel_t *channels = NULL;
|
struct channel_t *_Atomic channels = NULL;
|
||||||
atomic_int channel_capacity = 0;
|
atomic_int channel_capacity = 0;
|
||||||
atomic_int channel_count = 0;
|
atomic_int channel_count = 0;
|
||||||
int next_channel_id = 1;
|
int next_channel_id = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user