summaryrefslogtreecommitdiff
path: root/print/gv/patches/patch-aa
blob: d6100c00cce72bb43cf6617b0c1ed777ecddc5cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.13 2005/02/24 07:43:30 reed Exp $

--- src/main.c.orig	Mon Dec  6 15:36:57 2004
+++ src/main.c
@@ -321,6 +321,8 @@ int main(argc, argv)
     Dimension    maximum_width,maximum_height;
     unsigned int gwidth=0,gheight=0;
     int          dim_forced;
+    int          opt_counter = 0;
+    int          c;
 
 /*###  initializing global variables ####################################*/
 
@@ -419,8 +421,6 @@ int main(argc, argv)
    }
 
    /*### Manage GNU command line arguments ########################*/
-   int opt_counter = 0;
-   int c;
    while ((c = getopt_long (argc, argv, "vhu", GNU_longOptions, NULL))
 	  != -1)
      {