get rid of most compiler warnings

Origin commit data
------------------
Branch: master
Commit: aca3da1f29
Author: martii <m4rtii@gmx.de>
Date: 2012-10-27 (Sat, 27 Oct 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2012-10-27 18:08:29 +02:00
parent f7baf5ea30
commit e6519f45fe
12 changed files with 87 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ unsigned long cCpuFreqManager::GetCpuFreq(void) {
fclose(pll0);
return 1000 * 1000 * (unsigned long) freq;
}
return 0;
}
#else
unsigned long cCpuFreqManager::GetCpuFreq(void) { lt_debug("%s\n", __FUNCTION__); return 0; }
@@ -53,7 +54,7 @@ bool cCpuFreqManager::SetCpuFreq(unsigned long f)
FILE *pll0 = fopen ("/proc/cpu_frequ/pll0_ndiv_mdiv", "w");
if (pll0) {
f /= 1000000;
fprintf(pll0, "%d\n", f/10 * 256 + 3);
fprintf(pll0, "%lu\n", f/10 * 256 + 3);
fclose (pll0);
return 0;
}