diff options
author | Colin Watson <cjwatson@debian.org> | 2022-01-01 01:24:27 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-01-01 01:24:27 +0000 |
commit | c4ef5112a240de1681c74e4c6b64939090fe0193 (patch) | |
tree | fc4b2111f4e2d92b1c5e19e45e4bdc3dd470c7b3 /libdb | |
parent | 1775521c6e3395eada1812575f2df48706386866 (diff) |
Introduce pre-commit
* .pre-commit-config.yaml: New file.
* .gitlab-ci.yml (stages): Add bootstrap.
(pre-commit): New job.
(bootstrap): Move to bootstrap stage.
Remove trailing whitespace from all files.
Diffstat (limited to 'libdb')
-rw-r--r-- | libdb/README | 3 | ||||
-rw-r--r-- | libdb/db_lookup.c | 2 | ||||
-rw-r--r-- | libdb/db_storage.h | 8 | ||||
-rw-r--r-- | libdb/mydbm.h | 4 |
4 files changed, 8 insertions, 9 deletions
diff --git a/libdb/README b/libdb/README index c1816bd6..d3b007b8 100644 --- a/libdb/README +++ b/libdb/README @@ -1,7 +1,6 @@ This directory contains the database management routines required by the -man-db package. +man-db package. * You may distribute under the terms of the GNU Library General Public * License as specified in the file COPYING.LIB that comes with the man * distribution. - diff --git a/libdb/db_lookup.c b/libdb/db_lookup.c index 9ff72d6c..bb624745 100644 --- a/libdb/db_lookup.c +++ b/libdb/db_lookup.c @@ -463,7 +463,7 @@ gl_list_t dblookup_pattern (MYDBM_FILE dbf, const char *pattern, goto nextpage; tab = strrchr (MYDBM_DPTR (key), '\t'); - if (tab) + if (tab) *tab = '\0'; if (!info.name) diff --git a/libdb/db_storage.h b/libdb/db_storage.h index c6d412f9..be01cc37 100644 --- a/libdb/db_storage.h +++ b/libdb/db_storage.h @@ -1,6 +1,6 @@ /* * db_storage.h: define mandata structure, some macros and prototypes - * + * * Copyright (C) 1994, 1995 Graeme W. Wilford. (Wilf.) * Copyright (C) 2002, 2003, 2007, 2008 Colin Watson. * @@ -20,7 +20,7 @@ * along with man-db; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * Sat Oct 29 13:09:31 GMT 1994 Wilf. (G.Wilford@ee.surrey.ac.uk) + * Sat Oct 29 13:09:31 GMT 1994 Wilf. (G.Wilford@ee.surrey.ac.uk) */ #ifndef DB_STORAGE_H @@ -30,7 +30,7 @@ /* These definitions give an inherent precedence to each particular type of manual page: - + ULT_MAN: ultimate manual page, the full source nroff file. SO_MAN: source nroff file containing .so request to an ULT_MAN. WHATIS_MAN: virtual `whatis referenced' page pointing to an ULT_MAN. @@ -70,7 +70,7 @@ struct mandata { const char *filter; /* filters needed for the page */ const char *whatis; /* whatis description for page */ struct timespec mtime; /* mod time for file */ -}; +}; struct name_ext { const char *name; diff --git a/libdb/mydbm.h b/libdb/mydbm.h index 31f1d756..cbbd07df 100644 --- a/libdb/mydbm.h +++ b/libdb/mydbm.h @@ -23,7 +23,7 @@ * * Currently satisfies: * - * *hash based* + * *hash based* * GNU dbm: (gdbm & ndbm) * Berkeley db: (ndbm) * `native': (ndbm) @@ -31,7 +31,7 @@ * *binary tree based* * Berkeley db: (BTREE) * - * Tue Apr 26 12:56:44 BST 1994 Wilf. (G.Wilford@ee.surrey.ac.uk) + * Tue Apr 26 12:56:44 BST 1994 Wilf. (G.Wilford@ee.surrey.ac.uk) */ #ifndef MYDBM_H |