Date: Sat, 19 Oct 2019 17:43:05 -0700 (PDT) From: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> To: Jeremie Le Hen <jlh@freebsd.org> Cc: rgrimes@freebsd.org, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r353365 - head/usr.bin/procstat Message-ID: <201910200043.x9K0h5YZ030772@gndrsh.dnsmgr.net> In-Reply-To: <CAGSa5y1sv0BKm_nMJ_RR8mFwGbUEEjRvDaq7oFD84E2zefR4KQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Thu, Oct 10, 2019 at 11:27 PM Rodney W. Grimes > <freebsd@gndrsh.dnsmgr.net> wrote: > > > > > 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 > > Done in r353768. Thanks! Thank you. > > > 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@freebsd.org > > > > -- > Jeremie Le Hen > jlh@FreeBSD.org > -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910200043.x9K0h5YZ030772>