[hamradio-commits] [dump1090] 149/373: Fix terribl's commit for Microsoft C

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 914923f8bb827791ce72cd5c5602144e6760334e
Author: Malcolm Robb <Support at ATTAvionics.com>
Date:   Fri May 10 00:12:36 2013 +0100

    Fix terribl's commit for Microsoft C
    
    Microsoft Visual C 6.0 doesn't support inline declaration of variables.
    
    Also, need to update the version number.
---
 dump1090.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dump1090.c b/dump1090.c
index 6fe1820..5156138 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -56,7 +56,7 @@
 // MinorVer changes when additional features are added, but not for bug fixes (range 00-99)
 // DayDate & Year changes for all changes, including for bug fixes. It represent the release date of the update
 //
-#define MODES_DUMP1090_VERSION     "1.04.0705.13"
+#define MODES_DUMP1090_VERSION     "1.04.0905.13"
 
 #define MODES_DEFAULT_RATE         2000000
 #define MODES_DEFAULT_FREQ         1090000000
@@ -3117,6 +3117,7 @@ int handleHTTPRequest(struct client *c) {
     char *p, *url, *content;
     char ctype[48];
     char getFile[1024];
+    char *ext;
 
     if (Modes.debug & MODES_DEBUG_NET)
         printf("\nHTTP request: %s\n", c->buf);
@@ -3179,7 +3180,7 @@ int handleHTTPRequest(struct client *c) {
 
     // Get file extension and content type
     snprintf(ctype, sizeof ctype, MODES_CONTENT_TYPE_HTML); // Default content type
-    char *ext = strrchr(getFile, '.');
+    ext = strrchr(getFile, '.');
 
     if (strlen(ext) > 0) {
         if (strstr(ext, ".json")) {

-- 
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