[hamradio-commits] [dump1090] 379/389: Fix warnings and Windows compile problems
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 5f18f6cbcae538013f3252bfe0baf8c145f03715
Author: Malcolm Robb <Support at ATTAvionics.com>
Date: Wed Oct 29 19:00:42 2014 +0000
Fix warnings and Windows compile problems
---
net_io.c | 5 ++---
winstubs.h | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/net_io.c b/net_io.c
index 587d787..a979883 100644
--- a/net_io.c
+++ b/net_io.c
@@ -782,9 +782,8 @@ int handleHTTPRequest(struct client *c, char *p) {
}
if (clen < 0) {
- char buf[128];
- content = realloc(content, sizeof(buf));
- clen = snprintf(content,sizeof(buf),"Error opening HTML file: %s", strerror(errno));
+ content = realloc(content, 128);
+ clen = snprintf(content, 128,"Error opening HTML file: %s", strerror(errno));
statuscode = 404;
}
diff --git a/winstubs.h b/winstubs.h
index 051e2f0..caea01b 100644
--- a/winstubs.h
+++ b/winstubs.h
@@ -75,7 +75,7 @@ _inline uint64_t strtoll(const char *p, void *e, UINT32 base) {return _atoi64(p)
_inline int inet_aton(const char * cp, DWORD * ulAddr) { *ulAddr = inet_addr(cp); return 0;}
#define snprintf _snprintf
#define vsnprintf _vsnprintf
-#define realpath(A, B) _fullpath(B, A, _MAX_PATH)
+#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
_inline void cls() {
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list