pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/magicfilter Replace local getline() to avoid con...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9c214df93f8d
branches: trunk
changeset: 400355:9c214df93f8d
user: pgoyette <pgoyette%pkgsrc.org@localhost>
date: Sat Oct 17 18:43:22 2009 +0000
description:
Replace local getline() to avoid conflicts with native NetBSD's getline()
OK wiz@
diffstat:
print/magicfilter/distinfo | 3 ++-
print/magicfilter/patches/patch-ad | 28 ++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r 830c403cb1f5 -r 9c214df93f8d print/magicfilter/distinfo
--- a/print/magicfilter/distinfo Sat Oct 17 18:41:07 2009 +0000
+++ b/print/magicfilter/distinfo Sat Oct 17 18:43:22 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2006/08/31 08:07:00 rillig Exp $
+$NetBSD: distinfo,v 1.6 2009/10/17 18:43:22 pgoyette Exp $
SHA1 (magicfilter-1.2.tar.gz) = f1aff1c38065d9e00e0bfb748b70445829ecc0a6
RMD160 (magicfilter-1.2.tar.gz) = 064aeb611d461664afa5c71d8f8d2edc63480fa2
@@ -6,3 +6,4 @@
SHA1 (patch-aa) = 6fe946d6adc7db746c4ff70ed6a946aebf115d5d
SHA1 (patch-ab) = d55a2db4b9048a41be60c51f651ef0dfcb3f315e
SHA1 (patch-ac) = eb8aad07704ebe1ab744307523c846827a6afe93
+SHA1 (patch-ad) = 15997d146ce7b64c773e545ba30242ab3ffcd506
diff -r 830c403cb1f5 -r 9c214df93f8d print/magicfilter/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/magicfilter/patches/patch-ad Sat Oct 17 18:43:22 2009 +0000
@@ -0,0 +1,28 @@
+--- loadconfig.c.orig 2009-10-17 07:41:28.000000000 -0700
++++ loadconfig.c 2009-10-17 07:41:45.000000000 -0700
+@@ -14,14 +14,14 @@
+ fclose(f); return NULL; } while(0);
+
+ /*
+- * char *getline(FILE *f, char *file, int *lineno)
++ * char *my_getline(FILE *f, char *file, int *lineno)
+ *
+ * Get a logical line from file f; returning a pointer to the allocated
+ * storage. Advance the line pointer by # of lines. file used for
+ * error messages.
+ */
+
+-static char *getline(FILE *f, char *file, int *line)
++static char *my_getline(FILE *f, char *file, int *line)
+ {
+ char *buf, *p;
+ int buflen, spc, ch, bslash;
+@@ -118,7 +118,7 @@
+ return NULL;
+ }
+
+- while ( (line = getline(f, file, &lineno)) != NULL )
++ while ( (line = my_getline(f, file, &lineno)) != NULL )
+ {
+ offset = getoffset(line, &p);
+
Home |
Main Index |
Thread Index |
Old Index