Make sure to define the variable type so we do not get 'Undefined Variable'

errors when building for *BSD.

Thanks _alexey_ :)


SVN revision: 27487
This commit is contained in:
Christopher Michael 2006-12-17 10:12:03 +00:00
parent 38849cb682
commit 348ec15b3f
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ main(int argc, char *argv[])
#ifdef __FreeBSD__
if (!strcmp(argv[1], "frequency"))
{
new_frequency = atoi(argv[2]);
int new_frequency = atoi(argv[2]);
int len = 4;
if (sysctlbyname("dev.cpu.0.freq", NULL, 0, &new_frequency, &len) == -1)
{