chiark / gitweb /
get rid of udev_sysdeps.c
[elogind.git] / udev / lib / libudev-ctrl.c
index 6d91ea4dbcca048a442f0d29547a2ab19e75f1a0..e42f631571712ce5652738727b4452cb2608d71e 100644 (file)
@@ -29,7 +29,6 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 
-#include "../udev.h"
 #include "libudev.h"
 #include "libudev-private.h"
 
@@ -155,7 +154,7 @@ static int ctrl_send(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, int
        ctrl_msg.type = type;
 
        if (buf != NULL)
-               strlcpy(ctrl_msg.buf, buf, sizeof(ctrl_msg.buf));
+               util_strlcpy(ctrl_msg.buf, buf, sizeof(ctrl_msg.buf));
        else
                ctrl_msg.intval = intval;