Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ static const char *get_strategy_plus_sort(struct client *l, const char *field)

for (s = sdb->settings[PZ_SORTMAP]; s; s = s->next)
{
char *p = strchr(s->name + 3, ':');
const char *p = strchr(s->name + 3, ':');
if (!p)
{
yaz_log(YLOG_WARN, "Malformed sortmap name: %s", s->name);
Expand Down Expand Up @@ -1209,7 +1209,7 @@ static CCL_bibset prepare_cclmap(struct client *cl, CCL_bibset base_bibset)
for (s = sdb->settings[PZ_CCLMAP]; s; s = s->next)
{
const char *addinfo = 0;
char *p = strchr(s->name + 3, ':');
const char *p = strchr(s->name + 3, ':');
if (!p)
{
WRBUF w = wrbuf_alloc();
Expand Down
8 changes: 4 additions & 4 deletions src/normalize_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

*/

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>

#include <yaz/yaz-util.h>
#include <yaz/mutex.h>
#include <yaz/nmem.h>

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include "ppmutex.h"
#include "normalize_cache.h"

Expand Down
9 changes: 4 additions & 5 deletions src/normalize_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

*/

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>

#include <yaz/yaz-util.h>
#include <yaz/nmem.h>

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include "normalize_record.h"

#include "pazpar2_config.h"
#include "service_xslt.h"
#include "marcmap.h"
Expand Down
6 changes: 3 additions & 3 deletions src/reclists.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

*/

#include <assert.h>
#include <stdlib.h>

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include <assert.h>
#include <stdlib.h>

#include <yaz/yaz-util.h>

#include "ppmutex.h"
Expand Down
8 changes: 4 additions & 4 deletions src/record.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

*/

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>

#include <yaz/yaz-util.h>
#include <yaz/nmem.h>

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include "pazpar2_config.h"
#include "client.h"
#include "record.h"
Expand Down
3 changes: 1 addition & 2 deletions src/relevance.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,8 @@ static struct word_entry *word_entry_match(struct relevance *r,
const char *norm_str,
const char *rank, int *weight)
{
int i = 1;
struct word_entry *entries = r->entries;
for (; entries; entries = entries->next, i++)
for (; entries; entries = entries->next)
{
if (*norm_str && !strcmp(norm_str, entries->norm_str))
{
Expand Down
2 changes: 1 addition & 1 deletion src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int read_settings(const char *path,
int ret = 0;
DIR *d;
struct dirent *de;
char *dot;
const char *dot;

if (isdir(path))
{
Expand Down