aboutsummaryrefslogtreecommitdiffstats
path: root/russian
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-07-30 07:56:07 +0800
committerbapt <bapt@FreeBSD.org>2016-07-30 07:56:07 +0800
commit01ae7584d279479688a01cd35a0bc149504bf669 (patch)
treeb8b17ffe7d6a8c563746215920f46845ec2bac91 /russian
parent75eb2d590f8ff009b3b4e5093ebbac92b946f9fb (diff)
downloadfreebsd-ports-gnome-01ae7584d279479688a01cd35a0bc149504bf669.tar.gz
freebsd-ports-gnome-01ae7584d279479688a01cd35a0bc149504bf669.tar.zst
freebsd-ports-gnome-01ae7584d279479688a01cd35a0bc149504bf669.zip
Prevent collision with getline(3)
Diffstat (limited to 'russian')
-rw-r--r--russian/tidyup-mail/files/patch-main.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/russian/tidyup-mail/files/patch-main.c b/russian/tidyup-mail/files/patch-main.c
new file mode 100644
index 000000000000..6501c1102c20
--- /dev/null
+++ b/russian/tidyup-mail/files/patch-main.c
@@ -0,0 +1,29 @@
+--- main.c.orig 2006-06-28 18:33:53 UTC
++++ main.c
+@@ -43,7 +43,7 @@ struct chtab {
+ long count;
+ };
+
+-static size_t getline(FILE *, char **);
++static size_t get_line(FILE *, char **);
+ static void usage(const char *);
+ static void reverse(char *s);
+ static void itoa(const long num, char s[]);
+@@ -235,7 +235,7 @@ int main(int argc, char *argv[])
+ }
+
+ /* reading stream */
+- while ((len = getline(fp, &line)) > 0) {
++ while ((len = get_line(fp, &line)) > 0) {
+ line_info(line, &trline, &ok,
+ bullshit, &bn, &bstotal, flags);
+
+@@ -289,7 +289,7 @@ static void usage(const char *name)
+ prog_ver, name);
+ }
+
+-static size_t getline(FILE *stream, char **line)
++static size_t get_line(FILE *stream, char **line)
+ {
+ size_t c, len=0, size=BUFSIZ;
+ char *p;