* all matching files
*/
-/* TODO: Use current_mood as private_data*/
-static int parse_mood_line(char *mood_line, __a_unused void *private_data)
+static int parse_mood_line(char *mood_line, void *data)
{
+ struct mood *m = data;
char **argv;
char *delim = " \t";
unsigned num_words;
int i, ret;
enum mood_line_type mlt = ML_INVALID;
struct mood_item *mi = NULL;
- struct mood *m = current_mood;
char *buf = para_strdup(mood_line);
num_words = split_args(buf, &argv, delim);
new_mood = alloc_new_mood((char*)objs[BLOBCOL_NAME].data);
current_mood = new_mood;
ret = for_each_line_ro(objs[BLOBCOL_DEF].data, objs[BLOBCOL_DEF].size,
- parse_mood_line, NULL);
+ parse_mood_line, ¤t_mood);
osl_close_disk_object(&objs[BLOBCOL_DEF]);
if (ret < 0) {
PARA_ERROR_LOG("unable to load mood %s: %d\n",