File: 02_dlg.c.dpatch

package info (click to toggle)
drawmap 2.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,176 kB
  • ctags: 681
  • sloc: ansic: 13,087; makefile: 90; sh: 38
file content (37 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (2)
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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_drawmap.dpatch 
##
## DP: Fix build issue

@DPATCH@

--- drawmap-2.5.orig/dlg.c
+++ drawmap-2.5/dlg.c
@@ -1156,25 +1156,17 @@
 				if (pointflags & 1)  {
 					latitude2 = p_lat1;
 					longitude2 = image_corners->sw_long;
-					goto DONE2;
-				}
-				if (pointflags & 2)  {
+				} else if (pointflags & 2)  {
 					latitude2 = p_lat2;
 					longitude2 = image_corners->ne_long;
-					goto DONE2;
-				}
-				if (pointflags & 4)  {
+				} else if (pointflags & 4)  {
 					latitude2 = image_corners->sw_lat;
 					longitude2 = p_long1;
-					goto DONE2;
-				}
-				if (pointflags & 8)  {
+				} else if (pointflags & 8)  {
 					latitude2 = image_corners->ne_lat;
 					longitude2 = p_long2;
-					goto DONE2;
 				}
 			}
-DONE2:
 		}