[dpdk-dev] [PATCH] test: fix misplaced braces in strncmp call

2014-11-24 Thread Thomas Monjalon
> > This patch fixes two occurances where a call to strncmp had the closing > > brace in the wrong place. Changing this form: > > if (strncmp(X,Y,sizeof(X) != 0)) > > which does a comparison of length 1, to > > if (strncmp(X,Y,sizeof(X)) != 0) > > which does the correct length comparison an

[dpdk-dev] [PATCH] test: fix misplaced braces in strncmp call

2014-11-19 Thread Olivier MATZ
Hi Bruce, On 11/19/2014 10:06 AM, Bruce Richardson wrote: > This patch fixes two occurances where a call to strncmp had the closing > brace in the wrong place. Changing this form: > if (strncmp(X,Y,sizeof(X) != 0)) > which does a comparison of length 1, to > if (strncmp(X,Y,sizeof(X))

[dpdk-dev] [PATCH] test: fix misplaced braces in strncmp call

2014-11-19 Thread Bruce Richardson
This patch fixes two occurances where a call to strncmp had the closing brace in the wrong place. Changing this form: if (strncmp(X,Y,sizeof(X) != 0)) which does a comparison of length 1, to if (strncmp(X,Y,sizeof(X)) != 0) which does the correct length comparison and then compares