dnsapi: Use BOOL type where appropriate
Frédéric Delanoy
frederic.delanoy at gmail.com
Thu Nov 7 14:47:33 CST 2013
---
dlls/dnsapi/ns_name.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/dnsapi/ns_name.c b/dlls/dnsapi/ns_name.c
index 994aef9..b87714b 100644
--- a/dlls/dnsapi/ns_name.c
+++ b/dlls/dnsapi/ns_name.c
@@ -35,6 +35,8 @@
#endif
#include <string.h>
+#include "windef.h"
+
/* Data. */
static const char digits[] = "0123456789";
@@ -48,7 +50,7 @@ static const char digits[] = "0123456789";
* return:
* boolean.
*/
-static int
+static BOOL
special(int ch) {
switch (ch) {
case 0x22: /* '"' */
@@ -58,9 +60,9 @@ special(int ch) {
/* Special modifiers in zone files. */
case 0x40: /* '@' */
case 0x24: /* '$' */
- return (1);
+ return TRUE;
default:
- return (0);
+ return FALSE;
}
}
@@ -71,7 +73,7 @@ special(int ch) {
* return:
* boolean.
*/
-static int
+static BOOL
printable(int ch) {
return (ch > 0x20 && ch < 0x7f);
}
--
1.8.4.2
More information about the wine-patches
mailing list