summaryrefslogtreecommitdiff
path: root/audio/lash/files/patch-lashd_store.c
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-07-26 16:51:15 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-07-26 16:51:15 +0000
commit9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch)
tree9b071a8105704e992946dcd6b801e9fcb7635142 /audio/lash/files/patch-lashd_store.c
parentMooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff)
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=419133
Diffstat (limited to 'audio/lash/files/patch-lashd_store.c')
-rw-r--r--audio/lash/files/patch-lashd_store.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/audio/lash/files/patch-lashd_store.c b/audio/lash/files/patch-lashd_store.c
new file mode 100644
index 000000000000..9baee6d80f76
--- /dev/null
+++ b/audio/lash/files/patch-lashd_store.c
@@ -0,0 +1,34 @@
+--- lashd/store.c.orig 2007-01-13 22:08:54 UTC
++++ lashd/store.c
+@@ -36,6 +36,31 @@
+
+ #define STORE_INFO_FILE ".store_info"
+
++ssize_t
++getline (char **lineptr, size_t *n, FILE *stream)
++{
++ int linelen;
++
++ char *line=fgetln(stream, &linelen);
++
++ if (line==NULL) {
++ *lineptr=NULL;
++ return -1;
++ }
++
++ if (linelen + 1 > *n ) {
++ *lineptr=realloc(*lineptr, linelen + 1);
++ *n=linelen + 1;
++
++ if (lineptr==NULL)
++ return -1;
++ }
++
++ strlcpy(*lineptr, line, linelen + 1);
++
++ return linelen;
++}
++
+ void
+ store_free(store_t * store)
+ {