[Pommed-commits] [SCM] pommed - hotkeys handler for Apple laptops branch, master, updated. 1.38-4-g2082c1b

Julien BLACHE jb at jblache.org
Sat Apr 30 16:34:36 UTC 2011


The following commit has been merged in the master branch:
commit eb8b6ebf703c72ef981331da7f5d56e527470c5a
Author: Julien BLACHE <jb at jblache.org>
Date:   Sat Apr 30 18:21:30 2011 +0200

    Kill unused ret variable

diff --git a/pommed/power.c b/pommed/power.c
index 8bab752..101bf4a 100644
--- a/pommed/power.c
+++ b/pommed/power.c
@@ -46,13 +46,12 @@ sysfs_check_ac_state(void)
 {
   FILE *fp;
   char ac_state;
-  int ret;
 
   fp = fopen(SYSFS_POWER_AC_STATE, "r");
   if (fp == NULL)
     return AC_STATE_ERROR;
 
-  ret = fread(&ac_state, 1, 1, fp);
+  fread(&ac_state, 1, 1, fp);
 
   if (ferror(fp) != 0)
     {

-- 
pommed - hotkeys handler for Apple laptops



More information about the Pommed-commits mailing list