While we're at it, clean up white space, and cast a size_t to u_int,
rather than int, when passeing it to a routine that expects a u_int.
case DH6OPT_NEW_POSIX_TIMEZONE: /* all three of these options */
case DH6OPT_NEW_TZDB_TIMEZONE: /* are encoded similarly */
case DH6OPT_MUDURL: /* although GMT might not work */
case DH6OPT_NEW_POSIX_TIMEZONE: /* all three of these options */
case DH6OPT_NEW_TZDB_TIMEZONE: /* are encoded similarly */
case DH6OPT_MUDURL: /* although GMT might not work */
- if ( optlen < 5 ) {
- ND_PRINT((ndo," ?)"));
- break;
- }
- tp=(u_char *) (dh6o + 1);
- ND_PRINT((ndo,"="));
- fn_printn(ndo,tp,(int) optlen,NULL);
- ND_PRINT((ndo,")"));
+ if (optlen < 5) {
+ ND_PRINT((ndo, " ?)"));
+ break;
+ }
+ tp = (const u_char *)(dh6o + 1);
+ ND_PRINT((ndo, "="));
+ fn_printn(ndo, tp, (u_int)optlen, NULL);
+ ND_PRINT((ndo, ")"));
default:
ND_PRINT((ndo, ")"));
default:
ND_PRINT((ndo, ")"));