X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=blobdiff_plain;f=etc%2Fspotlight%2Fslmod_sparql_parser.c;h=bb06ba7a66d9feb172c739018f48a5a56bfb05b8;hp=d4082fd248bbc8f72ef531f994ac747e5b350ca6;hb=8ccdf12308235e51f06d033b209b3ad32e8a7bd8;hpb=546e55149fd9f9810a05b5fe4fd5ca59ecfda7dd diff --git a/etc/spotlight/slmod_sparql_parser.c b/etc/spotlight/slmod_sparql_parser.c index d4082fd2..bb06ba7a 100644 --- a/etc/spotlight/slmod_sparql_parser.c +++ b/etc/spotlight/slmod_sparql_parser.c @@ -122,8 +122,8 @@ /* In a future release of Bison, this section will be replaced by #include "y.tab.h". */ -#ifndef YY_YY_Y_TAB_H_INCLUDED -# define YY_YY_Y_TAB_H_INCLUDED +#ifndef YY_YY_SLMOD_SPARQL_PARSER_H_INCLUDED +# define YY_YY_SLMOD_SPARQL_PARSER_H_INCLUDED /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 @@ -219,7 +219,7 @@ int yyparse (); /* Line 387 of yacc.c */ #line 221 "slmod_sparql_parser.c" -#endif /* !YY_YY_Y_TAB_H_INCLUDED */ +#endif /* !YY_YY_SLMOD_SPARQL_PARSER_H_INCLUDED */ /* Copy the second part of user declarations. */ @@ -1449,8 +1449,8 @@ yyreduce: #line 73 "slmod_sparql_parser.y" { ssp_result = talloc_asprintf(ssp_slq, - "SELECT DISTINCT ?url WHERE " - "{ ?obj nie:url ?url FILTER(regex(?url, '^file://%s/')) . %s}", + "SELECT ?url WHERE " + "{ ?obj nie:url ?url FILTER(regex(?url, '^file://%s/')) . %s} LIMIT 100", ssp_slq->slq_vol->v_path, (yyvsp[(1) - (1)].sval)); (yyval.sval) = ssp_result; }