| 12
 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
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 
 | Description: Change getline() in my_getline()
 Changed getline() in my_getline() to avoid eglibc colliding names in
 getline.c.
Author: Francesco Paolo Lovergine <frankie@debian.org>
Bug-Debian: http://bugs.debian.org/552864
--- gpstrans-0.41.orig/src/prefs.c
+++ gpstrans-0.41/src/prefs.c
@@ -268,7 +268,7 @@ SetupProgram ()
 
   do
     {
-      p = getline ("Please select datum: ");
+      p = my_getline ("Please select datum: ");
       sscanf (p, "%d", &value);
       printf ("\n");
     }
@@ -288,7 +288,7 @@ SetupProgram ()
 
   do
     {
-      p = getline ("Please select format: ");
+      p = my_getline ("Please select format: ");
       sscanf (p, "%d", &value);
       printf ("\n");
     }
@@ -298,7 +298,7 @@ SetupProgram ()
   printf ("\n");
   do
     {
-      p = getline ("Please select time offset (-12 to +12): ");
+      p = my_getline ("Please select time offset (-12 to +12): ");
       sscanf (p, "%f", &floatval);
       printf ("\n");
     }
@@ -308,7 +308,7 @@ SetupProgram ()
   printf ("\n");
   do
     {
-      p = getline ("Please enter serial device name: ");
+      p = my_getline ("Please enter serial device name: ");
       sprintf (gPrefs.Device, "%s", p);
       printf ("\n");
     }
@@ -317,7 +317,7 @@ SetupProgram ()
   printf ("\n");
   do
     {
-      p = getline ("Is your model etrex (or other similar model) (y/n)?");
+      p = my_getline ("Is your model etrex (or other similar model) (y/n)?");
 
       /* Add support to several models.Thats why we put the y as char */
       /* In practical terms,answer means BYTE not model. */
--- gpstrans-0.41.orig/src/getline/getline.h
+++ gpstrans-0.41/src/getline/getline.h
@@ -10,7 +10,7 @@
 
 typedef size_t (*gl_strwidth_proc) (char *);
 
-char *getline (char *);		/* read a line of input */
+char *my_getline (char *);		/* read a line of input */
 char *getlinenoecho (char *);	/* read a line of input */
 void gl_setwidth (int);		/* specify width of screen */
 void gl_histadd (char *);	/* adds entries to hist */
@@ -22,7 +22,7 @@ extern int (*gl_tab_hook) (char *, int,
 
 #else /* not __STDC__ */
 
-char *getline ();
+char *my_getline ();
 char *getlinenoecho ();
 void gl_setwidth ();
 void gl_histadd ();
--- gpstrans-0.41.orig/src/getline/getline.c
+++ gpstrans-0.41/src/getline/getline.c
@@ -37,7 +37,7 @@ extern void free ();
 
 /********************* exported interface ********************************/
 
-char *getline ();		/* read a line of input */
+char *my_getline ();		/* read a line of input */
 void gl_setwidth ();		/* specify width of screen */
 void gl_histadd ();		/* adds entries to hist */
 void gl_strwidth ();		/* to bind gl_strlen */
@@ -392,7 +392,7 @@ gl_init ()
       hist_init ();
     }
   if (isatty (0) == 0 || isatty (1) == 0)
-    gl_error ("\n*** Error: getline(): not interactive, use stdio.\n");
+    gl_error ("\n*** Error: my_getline(): not interactive, use stdio.\n");
   gl_char_init ();
   gl_init_done = 1;
 }
@@ -422,7 +422,7 @@ gl_setwidth (w)
 }
 
 char *
-getline (prompt)
+my_getline (prompt)
      char *prompt;
 {
   int c, loc, tmp;
@@ -634,7 +634,7 @@ gl_addchar (c)
   int i;
 
   if (gl_cnt >= BUF_SIZE - 1)
-    gl_error ("\n*** Error: getline(): input buffer overflow\n");
+    gl_error ("\n*** Error: my_getline(): input buffer overflow\n");
   if (gl_overwrite == 0 || gl_pos == gl_cnt)
     {
       for (i = gl_cnt; i >= gl_pos; i--)
@@ -662,7 +662,7 @@ gl_yank ()
       if (gl_overwrite == 0)
 	{
 	  if (gl_cnt + len >= BUF_SIZE - 1)
-	    gl_error ("\n*** Error: getline(): input buffer overflow\n");
+	    gl_error ("\n*** Error: my_getline(): input buffer overflow\n");
 	  for (i = gl_cnt; i >= gl_pos; i--)
 	    gl_buf[i + len] = gl_buf[i];
 	  for (i = 0; i < len; i++)
@@ -674,7 +674,7 @@ gl_yank ()
 	  if (gl_pos + len > gl_cnt)
 	    {
 	      if (gl_pos + len >= BUF_SIZE - 1)
-		gl_error ("\n*** Error: getline(): input buffer overflow\n");
+		gl_error ("\n*** Error: my_getline(): input buffer overflow\n");
 	      gl_buf[gl_pos + len] = 0;
 	    }
 	  for (i = 0; i < len; i++)
@@ -717,7 +717,7 @@ gl_newline ()
   int loc = gl_width - 5;	/* shifts line back to start position */
 
   if (gl_cnt >= BUF_SIZE - 1)
-    gl_error ("\n*** Error: getline(): input buffer overflow\n");
+    gl_error ("\n*** Error: my_getline(): input buffer overflow\n");
   if (gl_out_hook)
     {
       change = gl_out_hook (gl_buf);
@@ -1025,7 +1025,7 @@ gl_histadd (buf)
   char *p = buf;
   int len;
 
-  /* in case we call gl_histadd() before we call getline() */
+  /* in case we call gl_histadd() before we call my_getline() */
   if (gl_init_done < 0)
     {				/* -1 only on startup */
       hist_init ();
@@ -1316,7 +1316,7 @@ getlinenoecho (prompt)
   char *p;
 
   echo = (1 == 0);
-  p = getline (prompt);
+  p = my_getline (prompt);
   echo = (1 == 1);
 
   return p;
 |