Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/wdogctl Use _PATH_WATCHDOG from <paths.h> instead of lo...



details:   https://anonhg.NetBSD.org/src/rev/255f079b590e
branches:  trunk
changeset: 337990:255f079b590e
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed May 06 23:08:30 2015 +0000

description:
Use _PATH_WATCHDOG from <paths.h> instead of locally-defined value.

diffstat:

 sbin/wdogctl/wdogctl.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r c2bb9f2eab63 -r 255f079b590e sbin/wdogctl/wdogctl.c
--- a/sbin/wdogctl/wdogctl.c    Wed May 06 23:06:26 2015 +0000
+++ b/sbin/wdogctl/wdogctl.c    Wed May 06 23:08:30 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdogctl.c,v 1.20 2011/08/27 19:00:35 joerg Exp $       */
+/*     $NetBSD: wdogctl.c,v 1.21 2015/05/06 23:08:30 pgoyette Exp $    */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -35,7 +35,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: wdogctl.c,v 1.20 2011/08/27 19:00:35 joerg Exp $");
+__RCSID("$NetBSD: wdogctl.c,v 1.21 2015/05/06 23:08:30 pgoyette Exp $");
 #endif
 
 
@@ -53,8 +53,7 @@
 #include <syslog.h>
 #include <unistd.h>
 #include <string.h>
-
-#define        _PATH_WATCHDOG          "/dev/watchdog"
+#include <paths.h>
 
 static void    enable_kernel(const char *, u_int);
 static void    enable_user(const char *, u_int, int);



Home | Main Index | Thread Index | Old Index