Menu

#55 0.93beta5: ntlm.c should include inttypes.h

open
nobody
None
5
2012-11-28
2012-11-28
No

Compiling 0.93beta5 for 32bit linux, gcc gives this warning:
ntlm.c:82: warning: format '%ld' expects type 'long int', but argument 3 has type 'int64_t'

"%ld" is used as fallback there when PRId64 is undefined.

The problem simply is a missing #include <inttypes.h> in ntlm.c, like this:
--- ntlm.c
+++ ntlm.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
+#include <inttypes.h>

#include "ntlm.h"
#include "swap.h"

Discussion


Log in to post a comment.