X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Futil.h;h=afc41bb3fe2df95937725c873e81757c687600a4;hb=319929791248f823537ac5fb2fe10a01b5b820b9;hp=ebf6ee00c31a3b7df0f42f27668c02ab61b694d0;hpb=b562f3d09686bb1686646c949b6f92c94eb2d64c;p=util-vserver.git diff --git a/util-vserver/src/util.h b/util-vserver/src/util.h index ebf6ee0..afc41bb 100644 --- a/util-vserver/src/util.h +++ b/util-vserver/src/util.h @@ -1,6 +1,6 @@ -// $Id$ --*- c++ -*-- +// $Id$ --*- c -*-- -// Copyright (C) 2003 Enrico Scholz +// Copyright (C) 2004 Enrico Scholz // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -16,29 +16,9 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef H_UTIL_VSERVER_SRC_UTIL_H -#define H_UTIL_VSERVER_SRC_UTIL_H +#ifndef H_UTILVSERVER_SRC_UTIL_H +#define H_UTILVSERVER_SRC_UTIL_H -#include -#include +#include -#ifndef PACKAGE_BUGREPORT -# define PACKAGE_BUGREPORT "???" -#endif - -#ifndef VERSION_COPYRIGHT_DISCLAIMER -# define VERSION_COPYRIGHT_DISCLAIMER \ - "This program is free software; you may redistribute it under the terms of\n" \ - "the GNU General Public License. This program has absolutely no warranty.\n" -#endif - -inline static void -writeStr(int fd, char const *cmd) -{ - (void)write(fd, cmd, strlen(cmd)); -} - -#define WRITE_MSG(FD,X) (void)(write(FD,X,sizeof(X))) -#define WRITE_STR(FD,X) writeStr(FD,X) - -#endif // H_UTIL_VSERVER_SRC_UTIL_H +#endif // H_UTILVSERVER_SRC_UTIL_H