accordingly.
#!/bin/sh
-# $Id: buildconf.sh,v 1.42 2006-08-24 14:29:58 heikki Exp $
+# $Id: buildconf.sh,v 1.43 2006-09-27 11:38:59 adam Exp $
automake=automake
aclocal=aclocal
case $1 in
-d)
#sh_flags="-g -Wall -Wdeclaration-after-statement -Werror"
- sh_flags="-g -Wall -Wdeclaration-after-statement "
+ sh_flags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
enable_configure=true
enable_help=false
shift
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.315 2006-09-22 14:09:25 adam Exp $
+ * $Id: client.c,v 1.316 2006-09-27 11:38:59 adam Exp $
*/
/** \file client.c
* \brief yaz-client program
static void close_session (void);
-ODR getODROutputStream()
+ODR getODROutputStream(void)
{
return out;
}
return session_connect(cur_host);
}
-void try_reconnect()
+void try_reconnect(void)
{
char* open_command;
return 0;
}
-static Z_External *create_external_itemRequest()
+static Z_External *create_external_itemRequest(void)
{
struct ill_get_ctl ctl;
ILL_ItemRequest *req;
return 0;
}
-static int only_z3950()
+static int only_z3950(void)
{
if (!conn)
{
return 1;
}
-void source_rcfile()
+void source_rcfile(void)
{
/* Look for a $HOME/.yazclientrc and source it if it exists */
struct stat statbuf;
-/* $Id: cql.h,v 1.13 2005-06-27 22:03:59 adam Exp $
+/* $Id: cql.h,v 1.14 2006-09-27 11:39:00 adam Exp $
Copyright (C) 1995-2005, Index Data ApS
Index Data Aps
* Returns the standard CQL context set URI.
*/
YAZ_EXPORT
-const char *cql_uri();
+const char *cql_uri(void);
/**
* Compares two CQL strings (for relations, operators, etc)
-/* $Id: cqlutil.c,v 1.9 2005-06-27 22:03:59 adam Exp $
+/* $Id: cqlutil.c,v 1.10 2006-09-27 11:39:01 adam Exp $
Copyright (C) 1995-2005, Index Data ApS
Index Data Aps
return p;
}
-const char *cql_uri()
+const char *cql_uri(void)
{
return "info:srw/cql-context-set/1/cql-v1.1";
}
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: log.c,v 1.38 2006-07-31 10:05:04 adam Exp $
+ * $Id: log.c,v 1.39 2006-09-27 11:39:02 adam Exp $
*/
/**
#endif
-static int default_log_level() {
+static int default_log_level(void)
+{
char *env = getenv("YAZ_LOG");
if (env != 0)
return yaz_log_mask_str_x(env, YLOG_DEFAULT_LEVEL);
static unsigned int next_log_bit = YLOG_LAST_BIT<<1; /* first dynamic bit */
-static void init_mutex()
+static void init_mutex(void)
{
if (mutex_init_flag)
return;
return f;
}
-void yaz_log_close()
+void yaz_log_close(void)
{
if (yaz_file_type == use_file && yaz_global_log_file)
{
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: mime.h,v 1.2 2006-04-20 20:50:51 adam Exp $
+ * $Id: mime.h,v 1.3 2006-09-27 11:39:02 adam Exp $
*/
/** \file mime.h
typedef struct yaz_mime_info *yaz_mime_types;
-yaz_mime_types yaz_mime_types_create();
+yaz_mime_types yaz_mime_types_create(void);
void yaz_mime_types_add(yaz_mime_types t, const char *suffix,
const char *mime_type);
const char *yaz_mime_lookup_suffix(yaz_mime_types t, const char *suffix);
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.98 2006-09-06 09:35:41 adam Exp $
+ * $Id: seshigh.c,v 1.99 2006-09-27 11:39:02 adam Exp $
*/
/**
* \file seshigh.c
static int log_requestdetail = 0; /* more detailed stuff */
/** get_logbits sets global loglevel bits */
-static void get_logbits()
+static void get_logbits(void)
{ /* needs to be called after parsing cmd-line args that can set loglevels!*/
if (!logbits_set)
{
assoc->init->implementation_name,
odr_prepend(assoc->encode, "GFS", resp->implementationName));
- version = odr_strdup(assoc->encode, "$Revision: 1.98 $");
+ version = odr_strdup(assoc->encode, "$Revision: 1.99 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
resp->implementationVersion = odr_prepend(assoc->encode,
* NT threaded server code by
* Chas Woodfield, Fretwell Downing Informatics.
*
- * $Id: statserv.c,v 1.42 2006-09-14 13:50:24 adam Exp $
+ * $Id: statserv.c,v 1.43 2006-09-27 11:39:02 adam Exp $
*/
/**
#endif
#if YAZ_HAVE_XML2
-static xmlNodePtr xml_config_get_root()
+static xmlNodePtr xml_config_get_root(void)
{
xmlNodePtr ptr = 0;
if (xml_config_doc)
}
#endif
-static struct gfs_server * gfs_server_new()
+static struct gfs_server * gfs_server_new(void)
{
struct gfs_server *n = nmem_malloc(gfs_nmem, sizeof(*n));
memcpy(&n->cb, &control_block, sizeof(control_block));
return 1;
}
-static void xml_config_read()
+static void xml_config_read(void)
{
struct gfs_server **gfsp = &gfs_server_list;
struct gfs_listen **gfslp = &gfs_listen_list;
*gfsp = 0;
}
-static void xml_config_open()
+static void xml_config_open(void)
{
if (!getcwd(gfs_root_dir, FILENAME_MAX))
{
#endif
}
-static void xml_config_close()
+static void xml_config_close(void)
{
#if YAZ_HAVE_XML2
if (xml_config_doc)
#endif
}
-static void xml_config_add_listeners()
+static void xml_config_add_listeners(void)
{
struct gfs_listen *gfs = gfs_listen_list;
int id_no;
}
}
-static void xml_config_bend_start()
+static void xml_config_bend_start(void)
{
if (control_block.xml_config[0])
{
}
}
-static void xml_config_bend_stop()
+static void xml_config_bend_stop(void)
{
if (control_block.xml_config[0])
{
* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: zoom-c.c,v 1.89 2006-09-19 21:09:44 adam Exp $
+ * $Id: zoom-c.c,v 1.90 2006-09-27 11:39:02 adam Exp $
*/
/**
* \file zoom-c.c
static zoom_ret do_write_ex(ZOOM_connection c, char *buf_out, int len_out);
static char *cql2pqf(ZOOM_connection c, const char *cql);
-static void initlog()
+static void initlog(void)
{
static int log_level_initialized = 0;
if (!log_level_initialized)
}
}
-ZOOM_resultset ZOOM_resultset_create()
+ZOOM_resultset ZOOM_resultset_create(void)
{
int i;
ZOOM_resultset r = (ZOOM_resultset) xmalloc(sizeof(*r));
odr_prepend(c->odr_out, "ZOOM-C",
ireq->implementationName));
- version = odr_strdup(c->odr_out, "$Revision: 1.89 $");
+ version = odr_strdup(c->odr_out, "$Revision: 1.90 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
ireq->implementationVersion =
-/* $Id: cql2pqf.c,v 1.7 2005-06-25 15:46:07 adam Exp $
+/* $Id: cql2pqf.c,v 1.8 2006-09-27 11:39:04 adam Exp $
Copyright (C) 1995-2005, Index Data ApS
Index Data Aps
#include <yaz/cql.h>
#include <yaz/options.h>
-static void usage()
+static void usage(void)
{
fprintf (stderr, "usage\n cql2pqf [-n <n>] <properties> [<query>]\n");
exit (1);