From b4f5f1315facd8db46e3cf83b110f4bec3d4bfdf Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 22 May 2005 03:01:59 +0000 Subject: [PATCH] cleanups from clement SVN revision: 14892 --- legacy/ecore/src/bin/ecore_evas_test_app.c | 3 ++- legacy/ecore/src/lib/ecore_dbus/ecore_dbus.c | 4 ++-- legacy/ecore/src/lib/ecore_x/ecore_x.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/legacy/ecore/src/bin/ecore_evas_test_app.c b/legacy/ecore/src/bin/ecore_evas_test_app.c index f1660eba38..e1d58d20a6 100644 --- a/legacy/ecore/src/bin/ecore_evas_test_app.c +++ b/legacy/ecore/src/bin/ecore_evas_test_app.c @@ -15,7 +15,8 @@ static void app_delete_request(Ecore_Evas *ee); static int getpix_cb(void *data) { - int *pix, p; + const int *pix; + int p; int w, h; FILE *f; int x, y; diff --git a/legacy/ecore/src/lib/ecore_dbus/ecore_dbus.c b/legacy/ecore/src/lib/ecore_dbus/ecore_dbus.c index 98ab05b56f..d222898b27 100644 --- a/legacy/ecore/src/lib/ecore_dbus/ecore_dbus.c +++ b/legacy/ecore/src/lib/ecore_dbus/ecore_dbus.c @@ -898,7 +898,7 @@ _ecore_dbus_getuid(void) char *tmp; tmp = (char *)malloc(MAX_LONG_LEN); - len = snprintf(tmp, MAX_LONG_LEN, "%ld", getuid()); + len = snprintf(tmp, MAX_LONG_LEN, "%ld", (long) getuid()); uid = (char *)malloc(len + 1); uid = memcpy(uid, tmp, len); uid[len] = '\0'; @@ -1168,7 +1168,7 @@ _ecore_dbus_event_server_data(void *udata, int ev_type, void *ev) /***************************/ if (!svr->authenticated) { - Ecore_DBus_Auth *auth; + const Ecore_DBus_Auth *auth; Ecore_DBus_Auth_Transaction trans; if (!strncmp(e->data, "OK", 2)) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x.c b/legacy/ecore/src/lib/ecore_x/ecore_x.c index 8a812459be..3b7893a630 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x.c @@ -1384,7 +1384,7 @@ ecore_x_window_button_ungrab(Ecore_X_Window win, int button, unsigned int b; unsigned int m; unsigned int locks[8]; - int i, shuffle = 0, found = 0; + int i, shuffle = 0; b = button; if (b == 0) b = AnyButton;