projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RPN parsing: simplify and make some funcs static.
[yaz-moved-to-github.git]
/
src
/
statserv.c
diff --git
a/src/statserv.c
b/src/statserv.c
index
7e11d6b
..
e46b110
100644
(file)
--- a/
src/statserv.c
+++ b/
src/statserv.c
@@
-53,6
+53,7
@@
#include <yaz/comstack.h>
#include <yaz/tcpip.h>
#include <yaz/options.h>
#include <yaz/comstack.h>
#include <yaz/tcpip.h>
#include <yaz/options.h>
+#include <yaz/errno.h>
#ifdef USE_XTIMOSI
#include <yaz/xmosi.h>
#endif
#ifdef USE_XTIMOSI
#include <yaz/xmosi.h>
#endif
@@
-994,7
+995,7
@@
static void listener(IOCHAN h, int event)
static void *new_session(void *vp)
{
static void *new_session(void *vp)
{
- char *a;
+ const char *a;
association *newas;
IOCHAN new_chan;
COMSTACK new_line = (COMSTACK) vp;
association *newas;
IOCHAN new_chan;
COMSTACK new_line = (COMSTACK) vp;
@@
-1062,7
+1063,7
@@
static void inetd_connection(int what)
COMSTACK line;
IOCHAN chan;
association *assoc;
COMSTACK line;
IOCHAN chan;
association *assoc;
- char *addr;
+ const char *addr;
if ((line = cs_createbysocket(0, tcpip_type, 0, what)))
{
if ((line = cs_createbysocket(0, tcpip_type, 0, what)))
{
@@
-1531,6
+1532,7
@@
int statserv_main(int argc, char **argv,
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab