Re: [patch] Use err instead of errx for checking strdup failed

2018-05-10 Thread Jeremie Courreges-Anglas
On Thu, May 10 2018, Nan Xiao wrote: > Hi tech@, Hi, > Following is a trivial modification of tcpbench.c, and I think use err > is more better than errx. Apologize if I am wrong, thanks! I think the preferred idiom is err(1, NULL); > Index: tcpbench.c >

Re: [patch] Use err instead of errx for checking strdup failed

2018-05-10 Thread Sebastian Benoit
ok benno@ Nan Xiao(n...@chinadtrace.org) on 2018.05.10 21:27:40 +0800: > Hi tech@, > > Following is a trivial modification of tcpbench.c, and I think use err > is more better than errx. Apologize if I am wrong, thanks! > > Index: tcpbench.c >

[patch] Use err instead of errx for checking strdup failed

2018-05-10 Thread Nan Xiao
Hi tech@, Following is a trivial modification of tcpbench.c, and I think use err is more better than errx. Apologize if I am wrong, thanks! Index: tcpbench.c === RCS file: /cvs/src/usr.bin/tcpbench/tcpbench.c,v retrieving revision