From 763e20e675799e9c8d8b62857cdd01126b62e9a9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 30 Nov 2013 19:53:33 +0100 Subject: bus: use "System.Error." as prefix for implicit errno bus errors We probably shouldn't use "Posix.Error" since many of the errors have nothing to do with Posix. --- src/libsystemd-bus/bus-error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsystemd-bus/bus-error.c') diff --git a/src/libsystemd-bus/bus-error.c b/src/libsystemd-bus/bus-error.c index 45dff80888..25eaf0eee4 100644 --- a/src/libsystemd-bus/bus-error.c +++ b/src/libsystemd-bus/bus-error.c @@ -42,7 +42,7 @@ static int bus_error_name_to_errno(const char *name) { if (!name) return EINVAL; - p = startswith(name, "Posix.Error."); + p = startswith(name, "System.Error."); if (p) { r = errno_from_name(p); if (r <= 0) @@ -198,7 +198,7 @@ static int errno_to_bus_error_name_new(int error, char **ret) { if (!name) return 0; - n = strappend("Posix.Error.", name); + n = strappend("System.Error.", name); if (!n) return -ENOMEM; -- cgit v1.2.3-54-g00ecf