summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-25 12:48:10 +0000
committerpuppetmaster <puppetmaster>2005-07-25 12:48:10 +0000
commit070e56e2bb8ffafd75e831dc17e5434bf706036f (patch)
tree5ba225b9034c28a21d59ef3fffb19fc3df6a2789
parentadded XscreenSaverQueryVersion to ecore_x_screensaver_query (diff)
downloadelock-070e56e2bb8ffafd75e831dc17e5434bf706036f.tar.xz
fix for struct usage ... -> and not "."
-rw-r--r--ecore_x_scrnsaver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ecore_x_scrnsaver.c b/ecore_x_scrnsaver.c
index d524086..c604801 100644
--- a/ecore_x_scrnsaver.c
+++ b/ecore_x_scrnsaver.c
@@ -15,13 +15,13 @@ ecore_x_scrnsaver_query(Ecore_X_Screensaver_Query *info_query)
Bool ext_result;
/* Query extention */
- ext_result = XScreenSaverQueryExtension(ecore_x_disp, &info_query.event_basep, &info_query.error_basep);
+ ext_result = XScreenSaverQueryExtension(ecore_x_disp, info_query->event_basep, info_query->error_basep);
/* Query version and status */
- info_query.ScreenSaver_status = XScreenSaverQueryVersion(ecore_x_disp, &info_query.major_version, &info_query.major_version);
+ info_query->ScreenSaver_status = XScreenSaverQueryVersion(ecore_x_disp, info_query->major_version, info_query->major_version);
- if (Queryresult == 0)
- return 0;
- else
+ if (!ext_result)
return 1;
+ else
+ return 0;
}