[Cpufreqd-devel] sources2/src cpufreqd_nvclock.c,1.5,1.6 cpufreqd_nforce2.c,1.8,1.9 cpufreqd_exec.c,
Brought to you by:
mattia-san
From: Mattia D. <mat...@us...> - 2006-02-19 19:17:09
|
Update of /cvsroot/cpufreqd/sources2/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29796/src Modified Files: cpufreqd_nvclock.c cpufreqd_nforce2.c cpufreqd_exec.c Log Message: mark __UNUSED__ parameters Index: cpufreqd_nvclock.c =================================================================== RCS file: /cvsroot/cpufreqd/sources2/src/cpufreqd_nvclock.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- cpufreqd_nvclock.c 21 Oct 2005 17:48:06 -0000 1.5 +++ cpufreqd_nvclock.c 19 Feb 2006 19:16:56 -0000 1.6 @@ -101,7 +101,9 @@ } -static void nvcore_change(void *obj, const struct cpufreq_policy *old, const struct cpufreq_policy *new) { +static void nvcore_change(void *obj, + const struct cpufreq_policy __UNUSED__ *old, + const struct cpufreq_policy __UNUSED__ *new) { struct nvclock_elem *nv = obj; if (nv->card < nvclock.num_cards) { @@ -113,7 +115,9 @@ } } -static void nvmem_change(void *obj, const struct cpufreq_policy *old, const struct cpufreq_policy *new) { +static void nvmem_change(void *obj, + const struct cpufreq_policy __UNUSED__ *old, + const struct cpufreq_policy __UNUSED__ *new) { struct nvclock_elem *nv = obj; if (nv->card < nvclock.num_cards) { Index: cpufreqd_nforce2.c =================================================================== RCS file: /cvsroot/cpufreqd/sources2/src/cpufreqd_nforce2.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- cpufreqd_nforce2.c 12 Sep 2005 21:57:22 -0000 1.8 +++ cpufreqd_nforce2.c 19 Feb 2006 19:16:56 -0000 1.9 @@ -127,7 +127,8 @@ static unsigned int cur_freq = 0; -static void vcore_pre_change(void *obj, const struct cpufreq_policy *old, +static void vcore_pre_change(void *obj, + const struct cpufreq_policy __UNUSED__ *old, const struct cpufreq_policy *new) { cur_freq = cpufreq_get(0); @@ -140,7 +141,8 @@ } } -static void vcore_post_change(void *obj, const struct cpufreq_policy *old, +static void vcore_post_change(void *obj, + const struct cpufreq_policy __UNUSED__ *old, const struct cpufreq_policy *new) { if (cur_freq > new->max) { Index: cpufreqd_exec.c =================================================================== RCS file: /cvsroot/cpufreqd/sources2/src/cpufreqd_exec.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- cpufreqd_exec.c 27 Dec 2005 20:48:23 -0000 1.2 +++ cpufreqd_exec.c 19 Feb 2006 19:16:56 -0000 1.3 @@ -59,7 +59,7 @@ /* Grab a command from the queue and execute it */ -static void *queue_launcher (void *arg) { +static void *queue_launcher (void __UNUSED__ *arg) { struct exec_cmd *etemp = NULL; pid_t child_pid = 0; int child_ret = 0; @@ -105,7 +105,7 @@ /* perhaps we don't need that, beacause exit status will be logged*/ child_ret = execl("/bin/sh", "/bin/sh", "-c", etemp->cmd, NULL); clog(LOG_ERR, "Unable to execl new process: %s\n", - strerror(child_ret)); + strerror(errno)); exit(1); default: waitpid(child_pid, &child_ret, 0); @@ -156,8 +156,9 @@ pthread_mutex_unlock(&exe_q_mtx); } -static void change (void *obj, const struct cpufreq_policy *old, - const struct cpufreq_policy *new) { +static void change (void *obj, + const struct cpufreq_policy __UNUSED__ *old, + const struct cpufreq_policy __UNUSED__ *new) { exec_enqueue((char *)obj); } |