]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Wrap EXPAND(..) macro with a do-while(0) loop and put a single statement on each...
authorngie <ngie@FreeBSD.org>
Sun, 22 May 2016 19:06:38 +0000 (19:06 +0000)
committerngie <ngie@FreeBSD.org>
Sun, 22 May 2016 19:06:38 +0000 (19:06 +0000)
commitbc6177838f0ca448d8be5f15d5aaa572bc0e9fdc
treec43a6507ae15b616e07c835dfdb992c697951b0e
parent5a6f3a2a93febf866fd1114407f195b0ca692669
Wrap EXPAND(..) macro with a do-while(0) loop and put a single statement on each line

As a positive side-effect, this eliminates the double semicolons reported by Coverity:
the macro contained a trailing semicolon, in addition to the semicolon placed on
each line where EXPAND(..) was called.

MFC after: 1 week
Reported by: Coverity
CID: 1194269
Sponsored by: EMC / Isilon Storage Division
usr.sbin/rpc.yppasswdd/yppasswdd_server.c