summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2023-05-24 13:05:43 +0200
committerGravatar default2023-05-24 13:05:43 +0200
commit5d8e370ec39d8345c95f6f2a5d8b6865b429b8fa (patch)
treefd547eed6164d7e0a028ca1ecb3741d83df96cb8 /data.c
parentPolls can now be voted. (diff)
downloadsnac2-5d8e370ec39d8345c95f6f2a5d8b6865b429b8fa.tar.gz
snac2-5d8e370ec39d8345c95f6f2a5d8b6865b429b8fa.tar.xz
snac2-5d8e370ec39d8345c95f6f2a5d8b6865b429b8fa.zip
More prototype tunnings.
Diffstat (limited to 'data.c')
-rw-r--r--data.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/data.c b/data.c
index db0d3aa..fa079cc 100644
--- a/data.c
+++ b/data.c
@@ -482,7 +482,7 @@ int index_len(const char *fn)
482} 482}
483 483
484 484
485d_char *index_list(const char *fn, int max) 485xs_list *index_list(const char *fn, int max)
486/* returns an index as a list */ 486/* returns an index as a list */
487{ 487{
488 d_char *list = NULL; 488 d_char *list = NULL;
@@ -508,7 +508,7 @@ d_char *index_list(const char *fn, int max)
508} 508}
509 509
510 510
511d_char *index_list_desc(const char *fn, int skip, int show) 511xs_list *index_list_desc(const char *fn, int skip, int show)
512/* returns an index as a list, in reverse order */ 512/* returns an index as a list, in reverse order */
513{ 513{
514 d_char *list = NULL; 514 d_char *list = NULL;
@@ -768,7 +768,7 @@ int object_announces_len(const char *id)
768} 768}
769 769
770 770
771d_char *object_children(const char *id) 771xs_list *object_children(const char *id)
772/* returns the list of an object's children */ 772/* returns the list of an object's children */
773{ 773{
774 xs *fn = _object_index_fn(id, "_c.idx"); 774 xs *fn = _object_index_fn(id, "_c.idx");
@@ -776,14 +776,14 @@ d_char *object_children(const char *id)
776} 776}
777 777
778 778
779d_char *object_likes(const char *id) 779xs_list *object_likes(const char *id)
780{ 780{
781 xs *fn = _object_index_fn(id, "_l.idx"); 781 xs *fn = _object_index_fn(id, "_l.idx");
782 return index_list(fn, XS_ALL); 782 return index_list(fn, XS_ALL);
783} 783}
784 784
785 785
786d_char *object_announces(const char *id) 786xs_list *object_announces(const char *id)
787{ 787{
788 xs *fn = _object_index_fn(id, "_a.idx"); 788 xs *fn = _object_index_fn(id, "_a.idx");
789 return index_list(fn, XS_ALL); 789 return index_list(fn, XS_ALL);