]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
DHCP: Fix a comment about formats for (un)signed longs/shorts data
[tcpdump] / smbutil.c
index e512e324d6a056a11853ba362d6e25b3faa3a5b4..fa5e133fa2a82e3767c203b3a477c06da98abca7 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -6,9 +6,7 @@
  * or later
  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -800,8 +798,8 @@ smb_fdata1(netdissect_options *ndo,
                break;
            }
            if (t != 0) {
-                   tstring = nd_format_time(buffer, sizeof(buffer), "%a %b %e %T %Y",
-                   localtime(&t));
+               tstring = nd_format_time(buffer, sizeof(buffer), "%Y-%m-%d %T",
+                                        localtime(&t));
            } else
                tstring = "NULL";
            ND_PRINT("%s\n", tstring);