chiark / gitweb /
Remove src/tmpfiles
[elogind.git] / src / tty-ask-password-agent / tty-ask-password-agent.c
index b4405ce8f1ab71b2e7c2d79b2a329703bd60d9ea..47093b850dcf4f319a3634748dd9fb0e3e5949f8 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <stddef.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/inotify.h>
 #include <unistd.h>
 #include <getopt.h>
@@ -385,7 +385,7 @@ static bool wall_tty_match(const char *path) {
         _cleanup_free_ char *p = NULL;
 
         if (!path_is_absolute(path))
-                path = strappenda("/dev/", path);
+                path = strjoina("/dev/", path);
 
         r = lstat(path, &st);
         if (r < 0)