svn commit: r353365 - head/usr.bin/procstat
Rodney W. Grimes
freebsd at gndrsh.dnsmgr.net
Thu Oct 10 21:27:39 UTC 2019
> Author: jlh
> Date: Wed Oct 9 20:05:14 2019
> New Revision: 353365
> URL: https://svnweb.freebsd.org/changeset/base/353365
>
> Log:
> Add a missing macro for the previous commit (IS_INADDR_ANY()).
Can we write it the same was as it is 100+ other places?
1022}# find . -type f | xargs grep "== INADDR_ANY" | wc
131 781 9607
>
> Modified:
> head/usr.bin/procstat/procstat_files.c
>
> Modified: head/usr.bin/procstat/procstat_files.c
> ==============================================================================
> --- head/usr.bin/procstat/procstat_files.c Wed Oct 9 20:01:23 2019 (r353364)
> +++ head/usr.bin/procstat/procstat_files.c Wed Oct 9 20:05:14 2019 (r353365)
> @@ -94,6 +94,7 @@ addr_to_string(struct sockaddr_storage *ss, char *buff
> struct sockaddr_in6 *sin6;
> struct sockaddr_in *sin;
> struct sockaddr_un *sun;
> +#define IS_INADDR_ANY(x) ((x).s_addr == INADDR_ANY)
>
> switch (ss->ss_family) {
> case AF_LOCAL:
>
--
Rod Grimes rgrimes at freebsd.org
More information about the svn-src-head
mailing list