removed malloc usage
This commit is contained in:
parent
eca240eec7
commit
0a7c7f5073
|
@ -28,10 +28,10 @@ freely, subject to the following restrictions:
|
||||||
|
|
||||||
// TODO: implement callbacks.
|
// TODO: implement callbacks.
|
||||||
int main(char* argv, int argc) {
|
int main(char* argv, int argc) {
|
||||||
uSynergyContext* context = malloc(sizeof(uSynergyContext));
|
uSynergyContext context;
|
||||||
uSynergyInit(context);
|
uSynergyInit(&context);
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
uSynergyUpdate(context);
|
uSynergyUpdate(&context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue