diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-06 17:41:33 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-06 17:41:33 -0400 |
| commit | 9001ca34f73ad861c049f367e2ef8477d19e7432 (patch) | |
| tree | 464ee1262b8a8f7d11fcd6c35ae7c9d1226fae17 /new/init_unix.c | |
| parent | d1be6e3ce158384b62ffab3bb439683a2018099d (diff) | |
Implemented what we have so far, but on Windows.
Diffstat (limited to 'new/init_unix.c')
| -rw-r--r-- | new/init_unix.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/new/init_unix.c b/new/init_unix.c index 4d951af..bda6481 100644 --- a/new/init_unix.c +++ b/new/init_unix.c @@ -7,22 +7,22 @@ struct uiInitError { uiInitError *uiInit(uiInitOptions *o) { - uiInitError *e; + uiInitError *err; - e = g_new0(uiInitError, 1); - if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &(e->err)) == FALSE) - return e; - g_free(e); + err = g_new0(uiInitError, 1); + if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &(err->err)) == FALSE) + return err; + g_free(err); return NULL; } -const char *uiInitErrorMessage(uiInitError *e) +const char *uiInitErrorMessage(uiInitError *err) { - return e->err->message; + return err->err->message; } -void uiInitErrorFree(uiInitError *e) +void uiInitErrorFree(uiInitError *err) { - g_error_free(e->err); - g_free(e); + g_error_free(err->err); + g_free(err); } |
