Age | Commit message (Collapse) | Author | Files | Lines |
|
Commit 4cb6f915 added cpufreq-selector-sysfs.[ch] to
mate_cpufreq_selector_SOURCES for the !HAVE_LIBCPUFREQ case, but left
them unconditionally included as well. Including them twice leads to
duplicate definitions for the symbols defined by them.
|
|
|
|
- tabs to spaces
- 4 spaces at the beginning of a line
|
|
|
|
|
|
|
|
cpufreq-selector-sysfs.c:244:18: warning: taking the absolute value of unsigned type ‘guint’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
244 | current_dist = abs (frequency - f);
| ^~~
--
cpufreq-selector-procfs.c:187:7: warning: taking the absolute value of unsigned type ‘guint’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
187 | if (abs (sc_max - frequency) < abs (frequency - sc_min))
| ^~~
cpufreq-selector-procfs.c:187:34: warning: taking the absolute value of unsigned type ‘guint’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
187 | if (abs (sc_max - frequency) < abs (frequency - sc_min))
| ^~~
--
cpufreq-selector-libcpufreq.c:109:18: warning: taking the absolute value of unsigned type ‘long unsigned int’ has no effect [-Wabsolute-value]
109 | current_dist = abs (freq->frequency - frequency);
| ^~~
|
|
Ported from gnome-applets, see
git diff e48b2d73~..5882df7f cpufreq/ configure.ac
on the gnome-applets repository.
Fixes mate-desktop/mate-applets#238.
|
|
|
|
|
|
void
g_list_free_full (GList *list,
GDestroyNotify free_func);
Convenience method, which frees all the memory used
by a GList, and calls free_func on every element's
data.
https://developer.gnome.org/glib/stable/glib-Doubly-Linked-Lists.html#g-list-free-full
|
|
And bump polkit requirement.
polkit_authority_get is deprecated since polkit-0.97 from 2010.
So the requirement bump should be save for all distros.
|
|
|
|
Closes #46
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|