File: mapdata

package info (click to toggle)
viz1090 0.1.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 492 kB
  • sloc: cpp: 3,260; ansic: 2,293; python: 86; makefile: 22; sh: 17
file content (47 lines) | stat: -rw-r--r-- 1,668 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 viz1090 (0+git20250919+ds-1) unstable; urgency=medium
 .
   * Initial release. (Closes: #1115683)
Author: Alex Myczko <tar@debian.org>
Bug-Debian: https://bugs.debian.org/1115683

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2025-09-19

--- viz1090-0+git20250919+ds.orig/Map.cpp
+++ viz1090-0+git20250919+ds/Map.cpp
@@ -37,6 +37,8 @@
 #include <string>
 #include <iostream>
 
+#define MAPDATA "/usr/lib/viz1090/mapdata.bin"
+
 bool Map::QTInsert(QuadTree *tree, Line *line, int depth) {
 
   // if(depth > 25) {
@@ -189,7 +191,7 @@ std::vector<Line*> Map::getLines(float s
 Map::Map() { 
   FILE *fileptr;
 
-  if((fileptr = fopen("mapdata.bin", "rb"))) {
+  if((fileptr = fopen(MAPDATA, "rb"))) {
       
 
     fseek(fileptr, 0, SEEK_END);