Skip to content

Commit

Permalink
remove trailing whitespace
Browse files Browse the repository at this point in the history
Problem: There's a lot of trailing whitespace throughout the code and
documentation.

Remove it.
  • Loading branch information
chu11 committed Aug 27, 2023
1 parent 15cb336 commit c9f1093
Show file tree
Hide file tree
Showing 80 changed files with 3,186 additions and 3,186 deletions.
2 changes: 1 addition & 1 deletion config/ac_cplusplus_extensions.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AC_DEFUN([AC_CPLUSPLUS_EXTENSIONS],
[
AC_MSG_CHECKING(for --with-cplusplus-extensions)
AC_ARG_WITH(cplusplus-extensions,
AS_HELP_STRING([--with-cplusplus-extensions=],
AS_HELP_STRING([--with-cplusplus-extensions=],
[enable or disable c++ extensions build]),
[ case "$withval" in
yes)
Expand Down
2 changes: 1 addition & 1 deletion config/ac_extension_destdir.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AC_DEFUN([AC_EXTENSION_DESTDIR],
[
AC_MSG_CHECKING(for --with-extension-destdir )
AC_ARG_WITH(extension-destdir,
AS_HELP_STRING([--with-extension-destdir=path],
AS_HELP_STRING([--with-extension-destdir=path],
[define extension modules install prefix]),
[ case "$withval" in
yes)
Expand Down
4 changes: 2 additions & 2 deletions config/ac_genders_file.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ AC_DEFUN([AC_GENDERS_FILE],
GENDERS_DEFAULT_FILE="\"/etc/genders\""
AC_MSG_CHECKING([for genders default file path])
AC_ARG_WITH([genders-file],
AS_HELP_STRING([--with-genders-file=PATH],
AS_HELP_STRING([--with-genders-file=PATH],
[define default genders file]),
[ case "$withval" in
no) ;;
yes) ;;
*) GENDERS_DEFAULT_FILE="\"$withval\""
*) GENDERS_DEFAULT_FILE="\"$withval\""
esac
]
)
Expand Down
2 changes: 1 addition & 1 deletion config/ac_java_extensions.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AC_DEFUN([AC_JAVA_EXTENSIONS],
[
AC_MSG_CHECKING(for --with-java-extensions)
AC_ARG_WITH(java-extensions,
AS_HELP_STRING([--with-java-extensions=],
AS_HELP_STRING([--with-java-extensions=],
[enable or disable java extensions build]),
[ case "$withval" in
yes)
Expand Down
2 changes: 1 addition & 1 deletion config/ac_perl_extensions.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AC_DEFUN([AC_PERL_EXTENSIONS],
[
AC_MSG_CHECKING(for --with-perl-extensions)
AC_ARG_WITH(perl-extensions,
AS_HELP_STRING([--with-perl-extensions=],
AS_HELP_STRING([--with-perl-extensions=],
[enable or disable perl extensions build]),
[ case "$withval" in
yes)
Expand Down
2 changes: 1 addition & 1 deletion config/ac_perl_site_arch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AC_DEFUN([AC_PERL_SITE_ARCH],
[
AC_MSG_CHECKING(for --with-perl-site-arch)
AC_ARG_WITH(perl-site-arch,
AS_HELP_STRING([--with-perl-site-arch=],
AS_HELP_STRING([--with-perl-site-arch=],
[enable or disable perl extensions install in site arch]),
[ case "$withval" in
yes)
Expand Down
2 changes: 1 addition & 1 deletion config/ac_perl_vendor_arch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AC_DEFUN([AC_PERL_VENDOR_ARCH],
[
AC_MSG_CHECKING(for --with-perl-vendor-arch)
AC_ARG_WITH(perl-vendor-arch,
AS_HELP_STRING([--with-perl-vendor-arch=],
AS_HELP_STRING([--with-perl-vendor-arch=],
[enable or disable perl extensions install in vendor arch]),
[ case "$withval" in
yes)
Expand Down
2 changes: 1 addition & 1 deletion config/ac_python_extensions.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AC_DEFUN([AC_PYTHON_EXTENSIONS],
[
AC_MSG_CHECKING(for --with-python-extensions)
AC_ARG_WITH(python-extensions,
AS_HELP_STRING([--with-python-extensions=],
AS_HELP_STRING([--with-python-extensions=],
[enable or disable python extensions build]),
[ case "$withval" in
yes)
Expand Down
2 changes: 1 addition & 1 deletion contrib/cfengine/genders.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static int genders_file_exists (const char *genders_file)
if (genders_file == NULL)
genders_file = GENDERS_DEFAULT_FILE;

if ((stat (genders_file, &st) < 0) &&
if ((stat (genders_file, &st) < 0) &&
((errno == ENOENT) || (errno == ENOTDIR)))
return 0;

Expand Down
4 changes: 2 additions & 2 deletions contrib/php/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if test "$PHP_GENDERS" != "no"; then
done
fi
fi

if test -z "$GENDERS_DIR"; then
AC_MSG_RESULT([not found])
AC_MSG_ERROR([Please reinstall the genders distribution])
Expand All @@ -55,7 +55,7 @@ if test "$PHP_GENDERS" != "no"; then
],[
-L$GENDERS_DIR/lib -lm -ldl
])

PHP_SUBST(GENDERS_SHARED_LIBADD)

PHP_NEW_EXTENSION(genders, genders.c, $ext_shared)
Expand Down
2 changes: 1 addition & 1 deletion contrib/php/genders.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ zend_module_entry genders_module_entry = {
genders_functions,
PHP_MINIT(genders),
PHP_MSHUTDOWN(genders),
PHP_RINIT(genders),
PHP_RINIT(genders),
PHP_RSHUTDOWN(genders),
PHP_MINFO(genders),
NO_VERSION_YET,
Expand Down
8 changes: 4 additions & 4 deletions man/genders.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
Expand Down
8 changes: 4 additions & 4 deletions man/genders_attrlist_clear.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
Expand Down
8 changes: 4 additions & 4 deletions man/genders_attrlist_create.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Expand Down
8 changes: 4 additions & 4 deletions man/genders_attrlist_destroy.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
Expand Down
8 changes: 4 additions & 4 deletions man/genders_errnum.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
Expand Down
8 changes: 4 additions & 4 deletions man/genders_errormsg.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
Expand Down
20 changes: 10 additions & 10 deletions man/genders_getattr.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
.TH GENDERS_GETATTR 3 "August 2003" "LLNL" "LIBGENDERS"
.SH NAME
genders_getattr \- get attributes from a genders file
genders_getattr \- get attributes from a genders file
.SH SYNOPSIS
.B #include <genders.h>
.sp
Expand All @@ -46,7 +46,7 @@ attributes and attribute values,
.BR genders_getmaxattrs (3)
should be used to determine the minimum number of elements \fIattrs\fR
and \fIvals\fR should be able to store.
.BR genders_attrlist_create (3)
.BR genders_attrlist_create (3)
and
.BR genders_vallist_create (3)
could be used to create lists that are guaranteed to be large enough
Expand All @@ -57,8 +57,8 @@ On success, the number of attributes stored in \fIattrs\fR is
returned. On error, -1 is returned, and an error code is returned in
\fIhandle\fR. The error code can be retrieved via
.BR genders_errnum (3)
, and a description of the error code can be retrieved via
.BR genders_strerror (3).
, and a description of the error code can be retrieved via
.BR genders_strerror (3).
Error codes are defined in genders.h.
.br
.SH ERRORS
Expand All @@ -77,7 +77,7 @@ The list pointed to by \fIattrs\fR or \fIvals\fR is not large enough
to store all the attributes or attribute values.
.TP
.B GENDERS_ERR_PARAMETERS
An incorrect parameter has been passed in.
An incorrect parameter has been passed in.
.TP
.B GENDERS_ERR_NULLPTR
A null pointer has been found in the list passed in.
Expand All @@ -87,7 +87,7 @@ The node pointed to by \fInode\fR cannot be found in the genders file
or if \fInode\fR=NULL, the machine genders is running on is not listed
in the genders database.
.TP
.B GENDERS_ERR_MAGIC
.B GENDERS_ERR_MAGIC
\fIhandle\fR has an incorrect magic number. \fIhandle\fR does not
point to a genders handle or \fIhandle\fR has been destroyed by
.BR genders_handle_destroy (3).
Expand Down
18 changes: 9 additions & 9 deletions man/genders_getattr_all.3
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
.\" Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
.\" Written by Jim Garlick <garlick@llnl.gov> and Albert Chu <chu11@llnl.gov>.
.\" UCRL-CODE-2003-004.
.\"
.\"
.\" This file is part of Genders, a cluster configuration database.
.\" For details, see <http://www.llnl.gov/linux/genders/>.
.\"
.\"
.\" Genders 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; either version 2 of the License, or (at your option)
.\" any later version.
.\"
.\"
.\" Genders 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 Genders. If not, see <http://www.gnu.org/licenses/>.
.\"############################################################################
Expand All @@ -43,7 +43,7 @@ attributes,
.BR genders_getnumattrs (3)
should be used to determine the minimum number of elements \fIattrs\fR
should be able to store.
.BR genders_attrlist_create (3)
.BR genders_attrlist_create (3)
could be used to create a list that is guaranteed to be large enough
to store all attributes.
.br
Expand All @@ -52,8 +52,8 @@ On success, the number of attributes stored in \fIattrs\fR is
returned. On error, -1 is returned, and an error code is returned in
\fIhandle\fR. The error code can be retrieved via
.BR genders_errnum (3)
, and a description of the error code can be retrieved via
.BR genders_strerror (3).
, and a description of the error code can be retrieved via
.BR genders_strerror (3).
Error codes are defined in genders.h.
.br
.SH ERRORS
Expand All @@ -72,12 +72,12 @@ The list pointed to by \fIattrs\fR is not large enough to store all
the attributes.
.TP
.B GENDERS_ERR_PARAMETERS
An incorrect parameter has been passed in.
An incorrect parameter has been passed in.
.TP
.B GENDERS_ERR_NULLPTR
A null pointer has been found in the list passed in.
.TP
.B GENDERS_ERR_MAGIC
.B GENDERS_ERR_MAGIC
\fIhandle\fR has an incorrect magic number. \fIhandle\fR does not
point to a genders handle or \fIhandle\fR has been destroyed by
.BR genders_handle_destroy (3).
Expand Down
Loading

0 comments on commit c9f1093

Please sign in to comment.