Since last change moved ';' from macro to code, we need to embrace
macros with 'do {} while (0)' to avoid error in case macro is not defined. Prodded by: julian, archie Pointy hat to: glebius
This commit is contained in:
parent
b0e1e474f7
commit
ec774932ba
@ -31,9 +31,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define DBG printf("ng_device: %s\n", __func__ )
|
#define DBG do { printf("ng_device: %s\n", __func__ ); } while (0)
|
||||||
#else
|
#else
|
||||||
#define DBG
|
#define DBG do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -40,9 +40,9 @@
|
|||||||
* $Whistle: ng_pppoe.c,v 1.10 1999/11/01 09:24:52 julian Exp $
|
* $Whistle: ng_pppoe.c,v 1.10 1999/11/01 09:24:52 julian Exp $
|
||||||
*/
|
*/
|
||||||
#if 0
|
#if 0
|
||||||
#define DBG printf("pppoe: %s\n", __func__ )
|
#define DBG do { printf("ng_device: %s\n", __func__ ); } while (0)
|
||||||
#else
|
#else
|
||||||
#define DBG
|
#define DBG do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user