[libgudev/wip/hadess/fix-sysfs-attr: 1/4] gudev: Revert changes to g_udev_device_get_property_as_boolean()




commit 1fe85f8e9d9ed96d40433c3d93ac2d8c42b094b0
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 16 11:55:32 2021 +0100

    gudev: Revert changes to g_udev_device_get_property_as_boolean()
    
    We weren't supposed to change the strings recognised as booleans, which
    we only documented and didn't actually implement.

 gudev/gudevdevice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gudev/gudevdevice.c b/gudev/gudevdevice.c
index 27ffc52..9135a38 100644
--- a/gudev/gudevdevice.c
+++ b/gudev/gudevdevice.c
@@ -613,7 +613,7 @@ out:
  *
  * Look up the value for @key on @device and convert it to an
  * boolean. This is done by doing a case-insensitive string comparison
- * on the string value against "1", "true", "Y" and "y".
+ * on the string value against "1" and "true".
  *
  * Returns: The value for @key or %FALSE if @key doesn't exist or
  * isn't a #gboolean.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]