From e125fb2cf60581e98bc6e7a65a818533fe1917c4 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 19 Aug 2012 01:25:10 +0000 Subject: * include/sockio.h (connect_to_local_server): First parameter now const char*. * include/pixmap.h (zzopen): Second parameter now const char*. * lib/pixmap.c: Propagate change. * lib/sockio-c.c: Likewise. * hyper/parse-types.c (parse_verbatim): Tidy. * hyper/spadint.c (print_source_to_string1): Likewise. * hyper/initx.h (init_top_window): Change parameter type to const char*. * hyper/initx.c: Propagate change. * hyper/titlebar.c: Tidy. (set_name_and_icon): icon_name is now of type const char*. (get_border_properties): bwidth is not of type const char*. (mergeDatabases): classname is now of type const char*. (is_it_850): probtbl.name is now of type const char*. --- src/lib/pixmap.c | 2 +- src/lib/sockio-c.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/pixmap.c b/src/lib/pixmap.c index c09af5a6..2d321743 100644 --- a/src/lib/pixmap.c +++ b/src/lib/pixmap.c @@ -70,7 +70,7 @@ file_exists(char *file) } FILE * -zzopen(char *file,char * mode) +zzopen(char *file, const char* mode) { char com[512], zfile[512]; diff --git a/src/lib/sockio-c.c b/src/lib/sockio-c.c index a7efa4e2..21ef5504 100644 --- a/src/lib/sockio-c.c +++ b/src/lib/sockio-c.c @@ -971,7 +971,7 @@ sock_send_wakeup(int purpose) } OPENAXIOM_C_EXPORT openaxiom_sio * -connect_to_local_server_new(char *server_name, int purpose, int time_out) +connect_to_local_server_new(const char *server_name, int purpose, int time_out) { int max_con=(time_out == 0 ? 1000000 : time_out), i, code=-1; openaxiom_sio *sock; @@ -1023,7 +1023,7 @@ connect_to_local_server_new(char *server_name, int purpose, int time_out) } OPENAXIOM_C_EXPORT openaxiom_sio * -connect_to_local_server(char *server_name, int purpose, int time_out) +connect_to_local_server(const char *server_name, int purpose, int time_out) { int max_con=(time_out == 0 ? 1000000 : time_out), i, code=-1; openaxiom_sio *sock; -- cgit v1.2.3