From nobody Mon Feb 07 13:52:01 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E612319AAE05; Mon, 7 Feb 2022 13:52:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jsncz11hKz4y0B; Mon, 7 Feb 2022 13:52:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644241924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cp5+vnJ2MRIXvzjorbHdKusbOg9gEzZO+tgHyYYHErs=; b=nyJJNeIeKgD7OGspndXuR47S/rdaVaQwVIS1mF/kvIjsGq7q+ygQQJjQP1vabAIKWUZzRo hXJ2f+QZ7ECuI6TdPN/Y4MlATREsO3UgV9W+bVdiWU6uNilRr18imCKnS2O1d9OuhG0gPJ DA0EDsKkE3xZH/KcC8U7/Ff4ZbA9ZyZV9v33y58+oy0eKsW9/vmyCanwL/pxHQEYcVQUSo sm5P7DbrSdF9g9ojLwobrU74o5Tyo4VoUqpqPw89OozjIb6PWCD/lP2OhWvBzcQth/TUfG 5DoQSImYTVpRNWoTV7vDiHkFMcPuvnSW4hS/4kfTHanpveseOwE61h7fAWpeBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 69A6B2693C; Mon, 7 Feb 2022 13:52:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 217Dq1H1079586; Mon, 7 Feb 2022 13:52:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 217Dq1ES079585; Mon, 7 Feb 2022 13:52:01 GMT (envelope-from git) Date: Mon, 7 Feb 2022 13:52:01 GMT Message-Id: <202202071352.217Dq1ES079585@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: fa66e74d3b5b - stable/13 - ipfilter userland: Remove trailing whitespace List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: fa66e74d3b5b6dba1e12f1fd32652eb4f1874b85 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644241924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cp5+vnJ2MRIXvzjorbHdKusbOg9gEzZO+tgHyYYHErs=; b=ulTdRxkvxnVyOlF8sTBZorIaPMk83uXi0j02jzXxT0G8bYEz9QGWH8MBufVGZ6vJ4IrDJJ zQ/Lb58Z++F+PD2QyXozCJojrLmB3oPpIJdZUzsA6dR8lu2SLmXHiATQO9nHsjn+dmiFDZ 3TsnrPc2RaF695CXeyziCtTmu9oJ48VgRlGOrDiAfQL8Uv4ILxe/NwgIMpWeWRC2lXtJPV GIO+vxXbG7IJ1nivLvSs6zZbnk2FPC7tr1pxrZaMurhzGexX7xYKAThdEMlrdIzwhcGgRI Zso/Lc1FmIgROpus9qLrRsxYPsRWpLnm3J1Kp/chTgj/jJfyLTrPmutd1NPmrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644241924; a=rsa-sha256; cv=none; b=bgzRsZaCBomznrJohEAAWPTeGLzbclrJdFD4uSdtnI4G+/krIFjc5O2mCUTHlCGdkCAf1R soDr4KviWtEiNAQlR/D/jYmaeJTF2pe8fvjUCoW+XRUG+mkOyXLqexDnIyUhXc92B6Xg70 7oREJ2kFXp1U5nKVdPfGzwQWl0dA4BBZ6DP5mQYvIobcb5TCdvoww1wShpqF2IXb+YnAQm MlNVwodhaj4Um9jJP27sVc1uJPEsUKMSVSHN+fC0wwKlarHmfrqXZzcaqhUUwJ9y+OsHye BxlqQBigS6iXKdC7iY2XpbhMUwtCDrNqXcyBT92BLptQQdormdjJmfsJ75PQMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=fa66e74d3b5b6dba1e12f1fd32652eb4f1874b85 commit fa66e74d3b5b6dba1e12f1fd32652eb4f1874b85 Author: Cy Schubert AuthorDate: 2021-12-22 03:09:23 +0000 Commit: Cy Schubert CommitDate: 2022-02-07 13:51:16 +0000 ipfilter userland: Remove trailing whitespace (cherry picked from commit 27fc223414670ecd20d3c6f375fc48a3cd31c889) --- sbin/ipf/ipf/bpf-ipf.h | 10 +++++----- sbin/ipf/ipfstat/ipfstat.c | 2 +- sbin/ipf/ipftest/ip_fil.c | 2 +- sbin/ipf/ipnat/ipnat_y.y | 2 +- sbin/ipf/ippool/ippool.c | 6 +++--- sbin/ipf/ippool/ippool_y.y | 2 +- sbin/ipf/libipf/ipf_dotuning.c | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/sbin/ipf/ipf/bpf-ipf.h b/sbin/ipf/ipf/bpf-ipf.h index a114949de6e0..2350e6cf0692 100644 --- a/sbin/ipf/ipf/bpf-ipf.h +++ b/sbin/ipf/ipf/bpf-ipf.h @@ -6,7 +6,7 @@ * * This code is derived from the Stanford/CMU enet packet filter, * (net/enet.c) distributed as part of 4.3BSD, and code contributed - * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence + * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence * Berkeley Laboratory. * * Redistribution and use in source and binary forms, with or without @@ -55,8 +55,8 @@ typedef int bpf_int32; typedef u_int bpf_u_int32; /* - * Alignment macros. BPF_WORDALIGN rounds up to the next - * even multiple of BPF_ALIGNMENT. + * Alignment macros. BPF_WORDALIGN rounds up to the next + * even multiple of BPF_ALIGNMENT. */ #ifndef __NetBSD__ #define BPF_ALIGNMENT sizeof(bpf_int32) @@ -76,7 +76,7 @@ struct bpf_program { u_int bf_len; struct bpf_insn *bf_insns; }; - + /* * Struct returned by BIOCGSTATS. */ @@ -86,7 +86,7 @@ struct bpf_stat { }; /* - * Struct return by BIOCVERSION. This represents the version number of + * Struct return by BIOCVERSION. This represents the version number of * the filter language described by the instruction encodings below. * bpf understands a program iff kernel_major == filter_major && * kernel_minor >= filter_minor, that is, if the value returned by the diff --git a/sbin/ipf/ipfstat/ipfstat.c b/sbin/ipf/ipfstat/ipfstat.c index a6d782c4f7c9..424e93da2d20 100644 --- a/sbin/ipf/ipfstat/ipfstat.c +++ b/sbin/ipf/ipfstat/ipfstat.c @@ -15,7 +15,7 @@ #endif #include "ipf.h" #include "netinet/ipl.h" -#if defined(STATETOP) +#if defined(STATETOP) # if defined(sun) && defined(__SVR4) # include # endif diff --git a/sbin/ipf/ipftest/ip_fil.c b/sbin/ipf/ipftest/ip_fil.c index 0fb59a88f977..78791e2b27d4 100644 --- a/sbin/ipf/ipftest/ip_fil.c +++ b/sbin/ipf/ipftest/ip_fil.c @@ -267,7 +267,7 @@ get_unit(name, family) } else { old_ifneta = ifneta; nifs++; - ifneta = (struct ifnet **)reallocarray(ifneta, nifs + 1, + ifneta = (struct ifnet **)reallocarray(ifneta, nifs + 1, sizeof(ifp)); if (!ifneta) { free(old_ifneta); diff --git a/sbin/ipf/ipnat/ipnat_y.y b/sbin/ipf/ipnat/ipnat_y.y index 9f8eb841f7d4..175026b4083e 100644 --- a/sbin/ipf/ipnat/ipnat_y.y +++ b/sbin/ipf/ipnat/ipnat_y.y @@ -819,7 +819,7 @@ to: IPNY_TO { yyexpectaddr = 1; } ; ifnames: - ifname family { yyexpectaddr = 1; } + ifname family { yyexpectaddr = 1; } | ifname ',' otherifname family { yyexpectaddr = 1; } ; diff --git a/sbin/ipf/ippool/ippool.c b/sbin/ipf/ippool/ippool.c index d5e090759057..12c9c85800d5 100644 --- a/sbin/ipf/ippool/ippool.c +++ b/sbin/ipf/ippool/ippool.c @@ -1080,7 +1080,7 @@ setnodeaddr(int type, int role, void *ptr, char *arg) node->ipn_addr.adf_len = offsetof(addrfamily_t, adf_addr) + sizeof(struct in6_addr); - inet_pton(AF_INET6, arg, + inet_pton(AF_INET6, arg, &node->ipn_addr.adf_addr.in6.s6_addr); } #endif @@ -1099,12 +1099,12 @@ setnodeaddr(int type, int role, void *ptr, char *arg) node->ipe_mask.in4.s_addr = mask.s_addr; #ifdef USE_INET6 } else { - inet_pton(AF_INET6, arg, + inet_pton(AF_INET6, arg, &node->ipe_addr.in6.__u6_addr.__u6_addr32); node->ipe_mask.in6.__u6_addr.__u6_addr32[0] = mask.s_addr; node->ipe_mask.in6.__u6_addr.__u6_addr32[1] = - node->ipe_mask.in6.__u6_addr.__u6_addr32[2] = + node->ipe_mask.in6.__u6_addr.__u6_addr32[2] = node->ipe_mask.in6.__u6_addr.__u6_addr32[3] = 0; } #endif diff --git a/sbin/ipf/ippool/ippool_y.y b/sbin/ipf/ippool/ippool_y.y index 9e01318a78c7..c798ff50596b 100644 --- a/sbin/ipf/ippool/ippool_y.y +++ b/sbin/ipf/ippool/ippool_y.y @@ -376,7 +376,7 @@ addrmask: sizeof($$[1].adf_addr.in6)); else #endif - memset(&$$[1].adf_addr, 0xff, + memset(&$$[1].adf_addr, 0xff, sizeof($$[1].adf_addr.in4)); } ; diff --git a/sbin/ipf/libipf/ipf_dotuning.c b/sbin/ipf/libipf/ipf_dotuning.c index c7064cfbefef..1db47d76eac1 100644 --- a/sbin/ipf/libipf/ipf_dotuning.c +++ b/sbin/ipf/libipf/ipf_dotuning.c @@ -28,7 +28,7 @@ void ipf_dotuning(int fd, char *tuneargs, ioctlfunc_t iocfn) if (!strcmp(s, "list")) { while (1) { if ((*iocfn)(fd, SIOCIPFGETNEXT, &obj) == -1) { - ipf_perror_fd(fd, iocfn, + ipf_perror_fd(fd, iocfn, "ioctl(SIOCIPFGETNEXT)"); break; } @@ -44,7 +44,7 @@ void ipf_dotuning(int fd, char *tuneargs, ioctlfunc_t iocfn) strncpy(tu.ipft_name, s, sizeof(tu.ipft_name)); if (sscanf(t, "%lu", &tu.ipft_vlong) == 1) { if ((*iocfn)(fd, SIOCIPFSET, &obj) == -1) { - ipf_perror_fd(fd, iocfn, + ipf_perror_fd(fd, iocfn, "ioctl(SIOCIPFSET)"); return; }