projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6acf28a
)
Added const to avoid warnings
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 16 Oct 2003 11:43:37 +0000
(11:43 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 16 Oct 2003 11:43:37 +0000
(11:43 +0000)
src/yaz-my-server.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-my-server.cpp
b/src/yaz-my-server.cpp
index
7fae44d
..
4b11d13
100644
(file)
--- a/
src/yaz-my-server.cpp
+++ b/
src/yaz-my-server.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2001, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2001, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-my-server.cpp,v 1.11 2002-10-28 12:16:09 adam Exp $
+ * $Id: yaz-my-server.cpp,v 1.12 2003-10-16 11:43:37 adam Exp $
*/
#include <yaz/log.h>
*/
#include <yaz/log.h>
@@
-171,7
+171,7
@@
void MyServer::connectNotify()
{
}
{
}
-void usage(char *prog)
+void usage(const char *prog)
{
fprintf (stderr, "%s: [-a log] [-v level] [-T] @:port\n", prog);
exit (1);
{
fprintf (stderr, "%s: [-a log] [-v level] [-T] @:port\n", prog);
exit (1);
@@
-182,7
+182,7
@@
int main(int argc, char **argv)
int thread_flag = 0;
char *arg;
char *prog = *argv;
int thread_flag = 0;
char *arg;
char *prog = *argv;
- char *addr = "tcp:@:9999";
+ const char *addr = "tcp:@:9999";
char *apdu_log = 0;
Yaz_SocketManager mySocketManager;
char *apdu_log = 0;
Yaz_SocketManager mySocketManager;