From: Enrico Scholz Date: Tue, 3 Feb 2004 21:47:35 +0000 (+0000) Subject: cleanups; use modern interfaces X-Git-Tag: VERSION_0_10~781 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6d3f90db6eeae39a6df0bef1f215271f996708;p=util-vserver.git cleanups; use modern interfaces git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@764 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/vkill.c b/util-vserver/src/vkill.c index 918e596..52f8409 100644 --- a/util-vserver/src/vkill.c +++ b/util-vserver/src/vkill.c @@ -19,10 +19,10 @@ #ifdef HAVE_CONFIG_H # include #endif -#include "compat.h" #include "vserver.h" #include "linuxvirtual.h" +#include "util.h" #include #include @@ -35,14 +35,9 @@ #include #include -#define VERSION_COPYRIGHT_DISCLAIMER - #define CMD_HELP 0x8000 #define CMD_VERSION 0x8001 -#define WRITE_MSG(FD,X) (void)(write(FD,X,sizeof(X)-1)) -#define WRITE_STR(FD,X) writeStr(FD,X) - static struct option const CMDLINE_OPTIONS[] = { { "help", no_argument, 0, CMD_HELP }, @@ -65,12 +60,6 @@ static char const * const SIGNALS[] = { 0, }; -inline static void UNUSED -writeStr(int fd, char const *cmd) -{ - (void)write(fd, cmd, strlen(cmd)); -} - static void showHelp(int fd, char const *cmd, int res) {