Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/devpubd Use __dead. Save a pointer.
details: https://anonhg.NetBSD.org/src/rev/6e32feb26132
branches: trunk
changeset: 769625:6e32feb26132
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Sep 16 15:42:56 2011 +0000
description:
Use __dead. Save a pointer.
diffstat:
sbin/devpubd/devpubd.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r cdf947287137 -r 6e32feb26132 sbin/devpubd/devpubd.c
--- a/sbin/devpubd/devpubd.c Fri Sep 16 15:39:25 2011 +0000
+++ b/sbin/devpubd/devpubd.c Fri Sep 16 15:42:56 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2011\
Jared D. McNeill <jmcneill%invisible.ca@localhost>. 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());
Home |
Main Index |
Thread Index |
Old Index