mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
covert RETERR to do { ... } while (0)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.9 1999/01/22 00:36:54 marka Exp $ */
|
||||
/* $Id: rdata.c,v 1.10 1999/01/22 00:38:47 marka Exp $ */
|
||||
|
||||
#include <isc/buffer.h>
|
||||
#include <isc/lex.h>
|
||||
@@ -28,11 +28,11 @@
|
||||
#include <stdio.h>
|
||||
#include <isc/assertions.h>
|
||||
|
||||
#define RETERR(x) { \
|
||||
#define RETERR(x) do { \
|
||||
dns_result_t __r = (x); \
|
||||
if (__r != DNS_R_SUCCESS) \
|
||||
return (__r); \
|
||||
}
|
||||
} while (0)
|
||||
|
||||
static dns_result_t txt_totext(isc_region_t *source, isc_buffer_t *target);
|
||||
static dns_result_t txt_fromtext(isc_textregion_t *source,
|
||||
|
Reference in New Issue
Block a user