X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4e85180c53c1c8992c2979f6ad0ba4375c02203d..3951a87cbe09333a11faa929f93508c848a93fd5:/util-print.c diff --git a/util-print.c b/util-print.c index 68f98887..cb71d06c 100644 --- a/util-print.c +++ b/util-print.c @@ -21,7 +21,7 @@ /* * txtproto_print() derived from original code by Hannes Gredler - * (hannes@juniper.net): + * (hannes@gredler.at): * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code @@ -86,7 +86,7 @@ fn_print_char(netdissect_options *ndo, u_char c) } /* - * Print out a null-terminated filename (or other ascii string). + * Print out a null-terminated filename (or other ASCII string). * If ep is NULL, assume no truncation check is needed. * Return true if truncated. * Stop at ep (if given) or before the null char, whichever is first. @@ -119,7 +119,7 @@ fn_print(netdissect_options *ndo, } /* - * Print out a null-terminated filename (or other ascii string) from + * Print out a null-terminated filename (or other ASCII string) from * a fixed-length buffer. * If ep is NULL, assume no truncation check is needed. * Return the number of bytes of string processed, including the @@ -169,7 +169,7 @@ fn_printztn(netdissect_options *ndo, } /* - * Print out a counted filename (or other ascii string). + * Print out a counted filename (or other ASCII string). * If ep is NULL, assume no truncation check is needed. * Return true if truncated. * Stop at ep (if given) or after n bytes, whichever is first. @@ -197,7 +197,7 @@ fn_printn(netdissect_options *ndo, } /* - * Print out a null-padded filename (or other ascii string). + * Print out a null-padded filename (or other ASCII string). * If ep is NULL, assume no truncation check is needed. * Return true if truncated. * Stop at ep (if given) or after n bytes or before the null char, @@ -425,7 +425,7 @@ signed_relts_print(netdissect_options *ndo, { if (secs < 0) { ND_PRINT((ndo, "-")); - if (secs == -2147483648) { + if (secs == INT32_MIN) { /* * -2^31; you can't fit its absolute value into * a 32-bit signed integer.