projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release notes for 1.9.1
[blerg.git]
/
common
/
stringbucket.c
diff --git
a/common/stringbucket.c
b/common/stringbucket.c
index
ec827d1
..
27c1023
100644
(file)
--- a/
common/stringbucket.c
+++ b/
common/stringbucket.c
@@
-1,3
+1,6
@@
+/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
+ * BSD-style license. Please see the COPYING file for details.
+ */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
@@
-5,6
+8,7
@@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <stringbucket.h>
#include <string.h>
#include <stringbucket.h>
@@
-88,6
+92,7
@@
int stringbucket_delete(struct stringbucket *sb, const char *string) {
/* We doin' it DOS style! */
sb->list[pos] = 0;
/* We doin' it DOS style! */
sb->list[pos] = 0;
+ return 1;
}
void stringbucket_iterate(struct stringbucket *sb, void (*iter)(char *, void *), void *stuff) {
}
void stringbucket_iterate(struct stringbucket *sb, void (*iter)(char *, void *), void *stuff) {