Add comment for ev->devname - smdev - suckless mdev
(HTM) git clone git://git.suckless.org/smdev
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit fdc8d9bc59f0a945fe28932bdfbe73c4aa772362
(DIR) parent c228339545934e7ddf3f25ad262348488a36c01c
(HTM) Author: sin <sin@2f30.org>
Date: Fri, 23 Aug 2013 17:52:11 +0100
Add comment for ev->devname
Diffstat:
M smdev.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/smdev.c b/smdev.c
@@ -280,6 +280,7 @@ createdev(struct event *ev)
eprintf("chown %s:", devpath);
if (rule->path && rule->path[0] == '>') {
+ /* ev->devname is the original device name */
snprintf(buf, sizeof(buf), "/dev/%s", ev->devname);
if (symlink(devpath, buf) < 0)
eprintf("symlink %s -> %s:",