int size fix from Maxime Villard

SVN revision: 79217
This commit is contained in:
Mike Blumenkrantz 2012-11-13 10:52:49 +00:00
parent 051353d137
commit 5768027eba
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ main(int argc, char *argv[])
if (!strcmp(argv[1], "frequency"))
{
int new_frequency = atoi(argv[2]);
int len = 4;
size_t len = sizeof(new_frequency);
if (sysctlbyname("dev.cpu.0.freq", NULL, 0, &new_frequency, &len) == -1)
{
fprintf(stderr, "Unable to open frequency interface for writing.\n");