#include <stdio.h>
#include <string.h>
+#include <limits.h>
#include "netdissect-ctype.h"
(void)fprintf(stderr, "\n");
#endif
/* Save the actual handle, so it can be display with -u */
+ /* XXX really ? When -u is used this function is not called */
for (i = 0; i < len*4 && i*2 < sizeof(fsidp->Opaque_Handle) - 1; i++)
(void)snprintf(&(fsidp->Opaque_Handle[i*2]), 3, "%.2X",
GET_U_1(fhp + i));
/* XXX for now, give "bogus" values to aid debugging */
fsidp->fsid_code = 0;
- fsidp->Fsid_dev.Minor = 257;
- fsidp->Fsid_dev.Major = 257;
+ fsidp->Fsid_dev.Minor = UINT_MAX;
+ fsidp->Fsid_dev.Major = UINT_MAX;
*inop = 1;
- /* display will show this string instead of (257,257) */
+ /* display will show this string instead of (UINT_MAX,UINT_MAX) */
+ /* XXX really ? */
if (fsnamep)
*fsnamep = "Unknown";
fsid.Fsid_dev.Major, fsid.Fsid_dev.Minor);
}
- if(fsid.Fsid_dev.Minor == 257)
+ if(fsid.Fsid_dev.Minor == UINT_MAX && fsid.Fsid_dev.Major == UINT_MAX)
/* Print the undecoded handle */
fn_print_str(ndo, (const u_char *)fsid.Opaque_Handle);
else