From 1a239415a3a7545ad4074d277c33895ecaff96a2 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 3 Sep 2007 07:42:17 +0000 Subject: [PATCH] whitespace-cleanup git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2608 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- lib_internal/matchlist-appendfiles.c | 8 ++++---- lib_internal/matchlist-initmanually.c | 20 ++++++++++---------- lib_internal/matchlist.h | 10 +++++----- lib_internal/util-safechdir.h | 6 +++--- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/lib_internal/matchlist-appendfiles.c b/lib_internal/matchlist-appendfiles.c index bf05ad7..688f593 100644 --- a/lib_internal/matchlist-appendfiles.c +++ b/lib_internal/matchlist-appendfiles.c @@ -1,16 +1,16 @@ // $Id$ --*- c -*-- // 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 // the Free Software Foundation; version 2 of the License. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -43,7 +43,7 @@ MatchList_appendFiles(struct MatchList *list, size_t idx, { struct MatchItem *ptr = list->data + idx; size_t i; - + assert(idx+count <= list->count); if (auto_type) { diff --git a/lib_internal/matchlist-initmanually.c b/lib_internal/matchlist-initmanually.c index 4be43fd..1907d3b 100644 --- a/lib_internal/matchlist-initmanually.c +++ b/lib_internal/matchlist-initmanually.c @@ -1,16 +1,16 @@ // $Id$ --*- c -*-- // 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 // the Free Software Foundation; version 2 of the License. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -48,7 +48,7 @@ readExcludeListFD(int fd, off_t len; size_t lines = 0; char *ptr; - + if (fd==-1) return; // todo: message on verbose? len = Elseek(fd, 0, SEEK_END); @@ -80,7 +80,7 @@ readExcludeListFD(int fd, do { *tmp-- = '\0'; } while (tmp>ptr && *tmp==' '); - + if (tmp>ptr) (*files)[(*size)++] = ptr; } @@ -105,7 +105,7 @@ getConfigfileList(char const *vserver, char const ***files, size_t *size, char **buf) { - char tmpname[] = "/tmp/vunify.XXXXXX"; + char tmpname[] = "/tmp/vunify.XXXXXX"; pid_t pid; int fd = Emkstemp(tmpname); @@ -115,7 +115,7 @@ getConfigfileList(char const *vserver, if (pid==0) { char *args[10]; char const **ptr = (char const **)(args)+0; - + Edup2(fd, 1); //Eclose(0); if (fd!=1) Eclose(fd); @@ -129,7 +129,7 @@ getConfigfileList(char const *vserver, } else { int status; - + if (TEMP_FAILURE_RETRY(wait4(pid, &status, 0,0))==-1) { perror("wait4()"); exit(1); @@ -151,7 +151,7 @@ MatchList_initManually(struct MatchList *list, char const *vdir, char const *exclude_file) { char *buf[2] = { 0,0 }; - + char const **fixed_files = 0; size_t fixed_count = 0; @@ -167,7 +167,7 @@ MatchList_initManually(struct MatchList *list, } else len = strlen(vdir); - + if (Global_getVerbosity()>=1) { WRITE_MSG(1, "Initializing exclude-list for "); Vwrite(1, vdir, len); diff --git a/lib_internal/matchlist.h b/lib_internal/matchlist.h index 35a7620..02afb84 100644 --- a/lib_internal/matchlist.h +++ b/lib_internal/matchlist.h @@ -1,16 +1,16 @@ // $Id$ --*- c -*-- // 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 // the Free Software Foundation; version 2 of the License. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -52,12 +52,12 @@ struct MatchList struct MatchVserverInfo { - char const *name; + char const *name; vcCfgStyle style; PathInfo vdir; PathInfo appdir; - + bool use_pkgmgmt; }; diff --git a/lib_internal/util-safechdir.h b/lib_internal/util-safechdir.h index 8ab48c9..dea4084 100644 --- a/lib_internal/util-safechdir.h +++ b/lib_internal/util-safechdir.h @@ -1,16 +1,16 @@ // $Id$ --*- c -*-- // 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 // the Free Software Foundation; version 2 of the License. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- 1.8.1.5