Module Name: src Committed By: joerg Date: Fri Sep 16 15:42:56 UTC 2011
Modified Files: src/sbin/devpubd: devpubd.c Log Message: Use __dead. Save a pointer. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sbin/devpubd/devpubd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/devpubd/devpubd.c diff -u src/sbin/devpubd/devpubd.c:1.1 src/sbin/devpubd/devpubd.c:1.2 --- src/sbin/devpubd/devpubd.c:1.1 Mon Aug 29 11:38:48 2011 +++ src/sbin/devpubd/devpubd.c Fri Sep 16 15:42:56 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: devpubd.c,v 1.1 2011/08/29 11:38:48 mrg Exp $ */ +/* $NetBSD: devpubd.c,v 1.2 2011/09/16 15:42:56 joerg Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca> @@ -36,7 +36,7 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2011\ Jared D. McNeill <jmcne...@invisible.ca>. All rights reserved."); -__RCSID("$NetBSD: devpubd.c,v 1.1 2011/08/29 11:38:48 mrg Exp $"); +__RCSID("$NetBSD: devpubd.c,v 1.2 2011/09/16 15:42:56 joerg Exp $"); #include <sys/types.h> #include <sys/ioctl.h> @@ -55,12 +55,12 @@ #include <unistd.h> static int drvctl_fd = -1; -static const char *devpubd_script = DEVPUBD_RUN_HOOKS; +static const char devpubd_script[] = DEVPUBD_RUN_HOOKS; #define DEVPUBD_ATTACH_EVENT "device-attach" #define DEVPUBD_DETACH_EVENT "device-detach" -static void +__dead static void devpubd_exec(const char *path, const char *event, const char *device) { int error; @@ -107,7 +107,7 @@ } } -static void +__dead static void devpubd_eventloop(void) { const char *event, *device; @@ -195,7 +195,7 @@ return; } -static void +__dead static void usage(void) { fprintf(stderr, "usage: %s [-f]\n", getprogname());