smdev

suckless mdev
git clone git://git.suckless.org/smdev
Log | Files | Refs | README | LICENSE

commit 8c66cfaf736340ff2c7d984bc4d7b2b92640af6d
parent 210bd07cd4bb0c41313fda721578a3ddbbd52493
Author: sin <sin@2f30.org>
Date:   Thu, 22 Aug 2013 14:22:13 +0100

Rename runcmd() to runrule()

Diffstat:
Msmdev.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/smdev.c b/smdev.c @@ -32,7 +32,7 @@ enum action { static int dohotplug(void); static int matchrule(struct Rule *Rule, char *devname); -static void runcmd(enum action action, struct Rule *Rule); +static void runrule(enum action action, struct Rule *Rule); static int createdev(struct Event *ev); static void populatedev(const char *path); @@ -123,7 +123,7 @@ matchrule(struct Rule *Rule, char *devname) } static void -runcmd(enum action action, struct Rule *Rule) +runrule(enum action action, struct Rule *Rule) { if (!Rule->cmd || action == UNKNOWN_ACTION) return; @@ -245,7 +245,7 @@ createdev(struct Event *ev) if (putenv(buf) < 0) eprintf("putenv:"); - runcmd(mapaction(ev), Rule); + runrule(mapaction(ev), Rule); break; }