sd-daemon: don't mention strerror_safe() in examples in public headers
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 13:35:32 +0000 (15:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 13:56:41 +0000 (15:56 +0200)
It's an internal function we define, noone else should bother.

src/systemd/sd-daemon.h

index 860961e..62b0f72 100644 (file)
@@ -260,7 +260,7 @@ int sd_notify(int unset_environment, const char *state);
 
      sd_notifyf(0, "STATUS=Failed to start up: %s\n"
                    "ERRNO=%i",
-                   strerror_safe(errno),
+                   strerror(errno),
                    errno);
 
   See sd_notifyf(3) for more information.