X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fudev%2Fudev-ctrl.c;h=74bbd3a99eade7b908ed3524125a7f3efee7124a;hp=1e91ec20a1f8930460a91016daa22d8be8bcbada;hb=9ea28c55a2488e6cd4a44ac5786f12b71ad5bc9f;hpb=a163b64c4b08e8a4ad39a9a295acf3d1634024a3;ds=sidebyside diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 1e91ec20a..74bbd3a99 100644 --- a/src/udev/udev-ctrl.c +++ b/src/udev/udev-ctrl.c @@ -275,7 +275,7 @@ static int ctrl_send(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, int pfd[0].fd = uctrl->sock; pfd[0].events = POLLIN; - r = poll(pfd, 1, timeout * 1000); + r = poll(pfd, 1, timeout * MSEC_PER_SEC); if (r < 0) { if (errno == EINTR) continue;