update Sat Oct 17 12:37:00 PDT 2009
[pkgsrc.git] / print / magicfilter / patches / patch-ad
1 --- loadconfig.c.orig   2009-10-17 07:41:28.000000000 -0700
2 +++ loadconfig.c        2009-10-17 07:41:45.000000000 -0700
3 @@ -14,14 +14,14 @@
4                     fclose(f); return NULL; } while(0);
5  
6  /*
7 - * char *getline(FILE *f, char *file, int *lineno)
8 + * char *my_getline(FILE *f, char *file, int *lineno)
9   *
10   * Get a logical line from file f; returning a pointer to the allocated
11   * storage.  Advance the line pointer by # of lines.  file used for
12   * error messages.
13   */
14  
15 -static char *getline(FILE *f, char *file, int *line)
16 +static char *my_getline(FILE *f, char *file, int *line)
17  {
18    char *buf, *p;
19    int buflen, spc, ch, bslash;
20 @@ -118,7 +118,7 @@
21        return NULL;
22      }
23  
24 -  while ( (line = getline(f, file, &lineno)) != NULL )
25 +  while ( (line = my_getline(f, file, &lineno)) != NULL )
26      {
27        offset = getoffset(line, &p);
28