-/* $OpenBSD: print.c,v 1.50 2024/02/22 12:49:42 job Exp $ */
+/* $OpenBSD: print.c,v 1.51 2024/02/22 19:29:55 tb Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
} else {
if (i > 0)
printf("%26s", "");
- printf("%s\n", buf);
+ printf("%s\n", buf);
}
}
if (outformats & FORMAT_JSON)
-/* $OpenBSD: spl.c,v 1.1 2024/02/22 12:49:42 job Exp $ */
+/* $OpenBSD: spl.c,v 1.2 2024/02/22 19:29:55 tb Exp $ */
/*
* Copyright (c) 2024 Job Snijders <job@fastly.com>
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Comparator to help sorting elements in SPL prefixBlocks and VSPs.
* Returns -1 if 'a' should precede 'b', 1 if 'b' should precede 'a',
* or '0' if a and b are equal.
- */
+ */
static int
prefix_cmp(enum afi afi, const struct ip_addr *a, const struct ip_addr *b)
{