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.
|
||||
int main(char* argv, int argc) {
|
||||
uSynergyContext* context = malloc(sizeof(uSynergyContext));
|
||||
uSynergyInit(context);
|
||||
uSynergyContext context;
|
||||
uSynergyInit(&context);
|
||||
|
||||
for(;;) {
|
||||
uSynergyUpdate(context);
|
||||
uSynergyUpdate(&context);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue