pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib pkg_install: clean up l...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b0ce9bdfc336
branches: trunk
changeset: 382514:b0ce9bdfc336
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Jul 30 08:41:25 2022 +0000
description:
pkg_install: clean up leading, intermediate and trailing whitespace
diffstat:
pkgtools/pkg_install/files/lib/dewey.c | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diffs (60 lines):
diff -r 3001cd77307a -r b0ce9bdfc336 pkgtools/pkg_install/files/lib/dewey.c
--- a/pkgtools/pkg_install/files/lib/dewey.c Sat Jul 30 08:35:07 2022 +0000
+++ b/pkgtools/pkg_install/files/lib/dewey.c Sat Jul 30 08:41:25 2022 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: dewey.c,v 1.11 2009/03/06 15:18:42 joerg Exp $ */
+/* $NetBSD: dewey.c,v 1.12 2022/07/30 08:41:25 rillig Exp $ */
/*
- * Copyright © 2002 Alistair G. Crooks. All rights reserved.
+ * Copyright (c) 2002 Alistair G. Crooks. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -71,7 +71,7 @@
/* the tests that are recognised. */
- const test_t tests[] = {
+const test_t tests[] = {
{ "<=", 2, DEWEY_LE },
{ "<", 1, DEWEY_LT },
{ ">=", 2, DEWEY_GE },
@@ -81,7 +81,7 @@
{ NULL, 0, 0 }
};
- const test_t modifiers[] = {
+const test_t modifiers[] = {
{ "alpha", 5, Alpha },
{ "beta", 4, Beta },
{ "pre", 3, RC },
@@ -122,10 +122,10 @@
static int
mkcomponent(arr_t *ap, const char *num)
{
- static const char alphas[] = "abcdefghijklmnopqrstuvwxyz";
- const test_t *modp;
- int n;
- const char *cp;
+ static const char alphas[] = "abcdefghijklmnopqrstuvwxyz";
+ const test_t *modp;
+ int n;
+ const char *cp;
if (ap->c == ap->size) {
if (ap->size == 0) {
@@ -281,7 +281,7 @@
strncmp(pkg, pattern, (size_t)(version-pkg)) != 0)
return 0;
version++;
-
+
/* extract comparison operator */
if ((n = dewey_mktest(&op, sep)) < 0) {
return 0;
@@ -317,4 +317,3 @@
return 0;
}
-
Home |
Main Index |
Thread Index |
Old Index