mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 17:08:30 +02:00
freebsd: Fix a few minor warnings
This commit is contained in:
parent
25ddb11f08
commit
5836099ad7
2 changed files with 1 additions and 3 deletions
|
|
@ -331,9 +331,9 @@ end:
|
|||
static gboolean
|
||||
up_device_supply_acline_set_properties (UpDevice *device)
|
||||
{
|
||||
#ifndef UPOWER_CI_DISABLE_PLATFORM_CODE
|
||||
int acstate;
|
||||
|
||||
#ifndef UPOWER_CI_DISABLE_PLATFORM_CODE
|
||||
if (up_get_int_sysctl (&acstate, NULL, "hw.acpi.acline")) {
|
||||
g_object_set (device, "online", acstate ? TRUE : FALSE, NULL);
|
||||
return TRUE;
|
||||
|
|
@ -480,7 +480,6 @@ up_device_supply_init (UpDeviceSupply *supply)
|
|||
static void
|
||||
up_device_supply_class_init (UpDeviceSupplyClass *klass)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
UpDeviceClass *device_class = UP_DEVICE_CLASS (klass);
|
||||
|
||||
device_class->get_on_battery = up_device_supply_get_on_battery;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ up_get_int_sysctl (int *value, GError **err, const gchar *format, ...)
|
|||
g_free (name);
|
||||
return status;
|
||||
#else
|
||||
*value = NULL;
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue