mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-10 08:21:40 +08:00
removed malloc usage
This commit is contained in:
@@ -28,10 +28,10 @@ freely, subject to the following restrictions:
|
||||
|
||||
// TODO: implement callbacks.
|
||||
int main(char* argv, int argc) {
|
||||
uSynergyContext* context = malloc(sizeof(uSynergyContext));
|
||||
uSynergyInit(context);
|
||||
uSynergyContext context;
|
||||
uSynergyInit(&context);
|
||||
|
||||
for(;;) {
|
||||
uSynergyUpdate(context);
|
||||
uSynergyUpdate(&context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user