Build: fix for Solaris 11
authorJeremy Harris <jgh146exb@wizmail.org>
Mon, 27 Nov 2023 17:51:25 +0000 (17:51 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 27 Nov 2023 17:51:25 +0000 (17:51 +0000)
src/src/lookups/dnsdb.c

index 8288896ca42ae5f90e346e28906ff1391ac41b17..050baa3b7b015118734c7a11abf69f8a8bfadaa0 100644 (file)
@@ -445,20 +445,20 @@ while ((domain = string_nextinlist(&keystring, &sep, NULL, 0)))
        switch (type)
          {
          case T_MXH:
        switch (type)
          {
          case T_MXH:
-           if (rr_bad_size(rr, sizeof(u_int16_t))) continue;
+           if (rr_bad_size(rr, sizeof(uint16_t))) continue;
            /* mxh ignores the priority number and includes only the hostnames */
            GETSHORT(priority, p);
            break;
 
          case T_MX:
            /* mxh ignores the priority number and includes only the hostnames */
            GETSHORT(priority, p);
            break;
 
          case T_MX:
-           if (rr_bad_size(rr, sizeof(u_int16_t))) continue;
+           if (rr_bad_size(rr, sizeof(uint16_t))) continue;
            GETSHORT(priority, p);
            sprintf(CS s, "%d%c", priority, *outsep2);
            yield = string_cat(yield, s);
            break;
 
          case T_SRV:
            GETSHORT(priority, p);
            sprintf(CS s, "%d%c", priority, *outsep2);
            yield = string_cat(yield, s);
            break;
 
          case T_SRV:
-           if (rr_bad_size(rr, 3*sizeof(u_int16_t))) continue;
+           if (rr_bad_size(rr, 3*sizeof(uint16_t))) continue;
            GETSHORT(priority, p);
            GETSHORT(weight, p);
            GETSHORT(port, p);
            GETSHORT(priority, p);
            GETSHORT(weight, p);
            GETSHORT(port, p);
@@ -468,7 +468,7 @@ while ((domain = string_nextinlist(&keystring, &sep, NULL, 0)))
            break;
 
          case T_CSA:
            break;
 
          case T_CSA:
-           if (rr_bad_size(rr, 3*sizeof(u_int16_t))) continue;
+           if (rr_bad_size(rr, 3*sizeof(uint16_t))) continue;
            /* See acl_verify_csa() for more comments about CSA. */
            GETSHORT(priority, p);
            GETSHORT(weight, p);
            /* See acl_verify_csa() for more comments about CSA. */
            GETSHORT(priority, p);
            GETSHORT(weight, p);