[PATCH] ell/signal.h: use sigset_t instead of internal libc implementation
by maxice8
Fixes compilation on musl libc which doesn't show up the internal
implementation.
Error message:
CC ell/main.lo
In file included from ell/main.c:35:
ell/signal.h:39:40: error: unknown type name '__sigset_t'
struct l_signal *l_signal_create(const __sigset_t *mask,
^~~~~~~~~~
---
ell/signal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ell/signal.h b/ell/signal.h
index 0d4fdc8..98cf0fa 100644
--- a/ell/signal.h
+++ b/ell/signal.h
@@ -36,7 +36,7 @@ typedef void (*l_signal_notify_cb_t) (struct l_signal *signal,
uint32_t signo, void *user_data);
typedef void (*l_signal_destroy_cb_t) (void *user_data);
-struct l_signal *l_signal_create(const __sigset_t *mask,
+struct l_signal *l_signal_create(const sigset_t *mask,
l_signal_notify_cb_t callback,
void *user_data, l_signal_destroy_cb_t destroy);
void l_signal_remove(struct l_signal *signal);
--
2.19.1
2 years, 3 months
[PATCH 1/7] settings: Fix a format string
by Andrew Zaborowski
The %d conersion specifier is for integers.
---
ell/settings.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ell/settings.c b/ell/settings.c
index c6cb0ff..e3e8303 100644
--- a/ell/settings.c
+++ b/ell/settings.c
@@ -1068,7 +1068,7 @@ LIB_EXPORT bool l_settings_set_double(struct l_settings *settings,
{
L_AUTO_FREE_VAR(char *, buf);
- buf = l_strdup_printf("%d", in);
+ buf = l_strdup_printf("%f", in);
return l_settings_set_value(settings, group_name, key, buf);
}
--
2.19.1
2 years, 3 months