svn commit: r415037 - head/news/cg/files

Baptiste Daroussin bapt at FreeBSD.org
Wed May 11 21:51:02 UTC 2016


Author: bapt
Date: Wed May 11 21:51:01 2016
New Revision: 415037
URL: https://svnweb.freebsd.org/changeset/ports/415037

Log:
  Prevent collision with get_line

Added:
  head/news/cg/files/
  head/news/cg/files/patch-util.c   (contents, props changed)
  head/news/cg/files/patch-util.h   (contents, props changed)

Added: head/news/cg/files/patch-util.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/cg/files/patch-util.c	Wed May 11 21:51:01 2016	(r415037)
@@ -0,0 +1,20 @@
+--- util.c.orig	2002-05-13 16:27:29 UTC
++++ util.c
+@@ -180,7 +180,7 @@ rename_uniq(const char *from, char **to)
+ 

+ 
+ char *
+-getline(FILE *f)
++get_line(FILE *f)
+ {
+     static char *b;
+     static int bsize;
+@@ -234,7 +234,7 @@ getline(FILE *f)
+ void
+ skip_rest(FILE *f)
+ {
+-    while (getline(f) != NULL)
++    while (get_line(f) != NULL)
+ 	;
+ }
+ 

Added: head/news/cg/files/patch-util.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/cg/files/patch-util.h	Wed May 11 21:51:01 2016	(r415037)
@@ -0,0 +1,11 @@
+--- util.h.orig	2002-04-24 15:45:24 UTC
++++ util.h
+@@ -57,7 +57,7 @@ void copy_stream(stream *in, out_state *
+ void debug(out_state *out, char *fmt, ...);
+ char *expand(char *path);
+ FILE *fopen_uniq(char **s);
+-char *getline(FILE *f);
++char *get_line(FILE *f);
+ void output_header(out_state *out, symbol name, struct header *h);
+ void prdebug(int level, char *fmt, ...);
+ void prdebug_init(int do_file, int do_stdout);


More information about the svn-ports-head mailing list