chiark / gitweb /
[PATCH] small trivial cleanup of latest changes
[elogind.git] / namedev_parse.c
index aec87d27713c0ee2fbba1807c39efb80a7d9c7f1..2858a2809103ed31cbe6b6e66f896dd3c30d89f9 100644 (file)
@@ -176,7 +176,7 @@ int namedev_init_rules(void)
                        ++temp;
 
                /* empty line? */
                        ++temp;
 
                /* empty line? */
-               if ((*temp == 0x00) || (*temp == 0x0a))
+               if ((*temp == '\0') || (*temp == '\n'))
                        continue;
 
                /* see if this is a comment */
                        continue;
 
                /* see if this is a comment */
@@ -376,7 +376,7 @@ int namedev_init_permissions(void)
                        ++temp;
 
                /* empty line? */
                        ++temp;
 
                /* empty line? */
-               if ((*temp == 0x00) || (*temp == 0x0a))
+               if ((*temp == '\0') || (*temp == '\n'))
                        continue;
 
                /* see if this is a comment */
                        continue;
 
                /* see if this is a comment */