removed malloc usage

This commit is contained in:
Nick Bolton
2012-07-11 14:06:46 +00:00
parent eca240eec7
commit 0a7c7f5073

View File

@@ -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);
}
}