summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-16 13:34:11 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-16 13:34:11 +0200
commit6a95b1e7d6290293061e551eac679aee9ea21611 (patch)
tree79a81059486f87746e60fb12349fe010ad1b48e4 /udev
parent2c09b3b41d8feffee746eefe079619e6b7484fa8 (diff)
libudev: ctrl - fix typo in set_env()
Diffstat (limited to 'udev')
-rw-r--r--udev/lib/libudev-ctrl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/lib/libudev-ctrl.c b/udev/lib/libudev-ctrl.c
index 268ce2d353..75356b1d5f 100644
--- a/udev/lib/libudev-ctrl.c
+++ b/udev/lib/libudev-ctrl.c
@@ -30,6 +30,7 @@
#include "libudev.h"
#include "libudev-private.h"
+/* last known version with this wire protocol */
#define UDEV_CTRL_MAGIC "udevd-128"
enum udev_ctrl_msg_type {
@@ -189,7 +190,7 @@ int udev_ctrl_send_reload_rules(struct udev_ctrl *uctrl)
int udev_ctrl_send_set_env(struct udev_ctrl *uctrl, const char *key)
{
- ctrl_send(uctrl, UDEV_CTRL_SET_ENV, 0, optarg);
+ ctrl_send(uctrl, UDEV_CTRL_SET_ENV, 0, key);
return 0;
}