packages: ratpoison/ratpoison-getline.patch (NEW) - getline -> get_line (ge...

lisu lisu at pld-linux.org
Wed Jul 15 16:15:02 CEST 2009


Author: lisu                         Date: Wed Jul 15 14:15:02 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- getline -> get_line (getline function already declared in stdio.h)

---- Files affected:
packages/ratpoison:
   ratpoison-getline.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ratpoison/ratpoison-getline.patch
diff -u /dev/null packages/ratpoison/ratpoison-getline.patch:1.1
--- /dev/null	Wed Jul 15 16:15:02 2009
+++ packages/ratpoison/ratpoison-getline.patch	Wed Jul 15 16:14:57 2009
@@ -0,0 +1,20 @@
+--- ratpoison-1.4.5/src/history.c~	2009-07-12 23:00:35.000000000 +0200
++++ ratpoison-1.4.5/src/history.c	2009-07-15 16:00:25.000000000 +0200
+@@ -75,7 +75,7 @@
+ 
+ #ifndef HAVE_GETLINE
+ static ssize_t
+-getline(char **lineptr, size_t *n, FILE *f)
++get_line(char **lineptr, size_t *n, FILE *f)
+ {
+   size_t ofs;
+ 
+@@ -193,7 +193,7 @@
+     return;
+   }
+ 
+-  while ((linelen = getline (&line, &s, f)) >= 0) {
++  while ((linelen = get_line (&line, &s, f)) >= 0) {
+     while (linelen > 0 && (line[linelen-1] == '\n' || line[linelen-1] == '\r')) {
+       line[--linelen] = '\0';
+     }
================================================================


More information about the pld-cvs-commit mailing list