From 9001ca34f73ad861c049f367e2ef8477d19e7432 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 6 Apr 2015 17:41:33 -0400 Subject: Implemented what we have so far, but on Windows. --- new/init_unix.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'new/init_unix.c') 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); } -- cgit v1.2.3