summaryrefslogtreecommitdiff
path: root/src/udev/udev.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-06-28 23:42:52 +0200
committerTom Gundersen <teg@jklm.no>2015-06-29 19:51:04 +0200
commitbbf35206735f97cf3fcda8d26982b35b0cad20a9 (patch)
tree22c7f66a5ea8f058e56929085c63216399a2a8e5 /src/udev/udev.h
parent1cf34d7118e93f0734a52d0eb09f238cf9962b85 (diff)
udev: event - simplify udev_event_spawn() logic
Push the extraction of the envp + argv as close as possible to their use, to avoid code duplication. As a sideeffect fix logging when delaing execution.
Diffstat (limited to 'src/udev/udev.h')
-rw-r--r--src/udev/udev.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/udev.h b/src/udev/udev.h
index 3dca72e499..d17fc8c1ea 100644
--- a/src/udev/udev.h
+++ b/src/udev/udev.h
@@ -85,8 +85,7 @@ int udev_event_spawn(struct udev_event *event,
usec_t timeout_usec,
usec_t timeout_warn_usec,
bool accept_failure,
- const char *cmd, char **envp,
- char *result, size_t ressize);
+ const char *cmd, char *result, size_t ressize);
void udev_event_execute_rules(struct udev_event *event,
usec_t timeout_usec, usec_t timeout_warn_usec,
struct udev_list *properties_list,