diff options
author | raveit65 <[email protected]> | 2020-11-20 16:14:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-20 16:14:42 +0100 |
commit | 3dd33d455f60ccb07ca57b2ea083563efa51a252 (patch) | |
tree | 8580a55e0f9c70dbe67efb6a35af58c14b10d5c0 /cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c | |
parent | 882de1f0e1237dac2512e4ecf205b21d073c98c5 (diff) | |
download | mate-applets-3dd33d455f60ccb07ca57b2ea083563efa51a252.tar.bz2 mate-applets-3dd33d455f60ccb07ca57b2ea083563efa51a252.tar.xz |
Cpufreq code style
- tabs to spaces
- 4 spaces at the beginning of a line
Diffstat (limited to 'cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c')
-rw-r--r-- | cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c b/cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c index ac96e8b2..9f9bd29d 100644 --- a/cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c +++ b/cpufreq/src/cpufreq-selector/cpufreq-selector-factory.c @@ -31,17 +31,17 @@ CPUFreqSelector * cpufreq_selector_factory_create_selector (guint cpu) { - CPUFreqSelector *selector = NULL; - + CPUFreqSelector *selector = NULL; + #ifdef HAVE_LIBCPUFREQ - selector = cpufreq_selector_libcpufreq_new (cpu); + selector = cpufreq_selector_libcpufreq_new (cpu); #else - if (g_file_test ("/sys/devices/system/cpu/cpu0/cpufreq", G_FILE_TEST_EXISTS)) { /* 2.6 kernel */ - selector = cpufreq_selector_sysfs_new (cpu); - } else if (g_file_test ("/proc/cpufreq", G_FILE_TEST_EXISTS)) { /* 2.4 kernel */ - selector = cpufreq_selector_procfs_new (cpu); - } + if (g_file_test ("/sys/devices/system/cpu/cpu0/cpufreq", G_FILE_TEST_EXISTS)) { /* 2.6 kernel */ + selector = cpufreq_selector_sysfs_new (cpu); + } else if (g_file_test ("/proc/cpufreq", G_FILE_TEST_EXISTS)) { /* 2.4 kernel */ + selector = cpufreq_selector_procfs_new (cpu); + } #endif /* HAVE_LIBCPUFREQ */ - return selector; + return selector; } |