Changeset: dd6966ccce9a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/dd6966ccce9a
Modified Files:
monetdb5/mal/mal_client.h
sql/backends/monet5/sql_result.c
Branch: default
Log Message:
Use const char *.
diffs (31 lines):
diff --git a/monetdb5/mal/mal_client.h b/monetdb5/mal/mal_client.h
--- a/monetdb5/mal/mal_client.h
+++ b/monetdb5/mal/mal_client.h
@@ -86,11 +86,11 @@ typedef struct CLIENT {
lng session; /* usec since start of server */
time_t idle; /* Time when the session became
idle */
str peer; /* Remote end of
network connection */
- str client_hostname; /* Host name if reported by client,
peer otherwise */
- str client_application; /* Application name reported by the
client*/
- str client_library; /* MAPI client library reported
by the client */
+ const char *client_hostname; /* Host name if reported by client, peer
otherwise */
+ const char *client_application; /* Application name reported by the
client*/
+ const char *client_library; /* MAPI client library reported by the
client */
long client_pid; /* client process id reported
by the client */
- str client_remark; /* Other
information reported by the client */
+ const char *client_remark; /* Other information reported by the client
*/
/*
* For program debugging and performance trace we keep the actual
resource claims.
diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -1743,7 +1743,7 @@ mvc_export_head(backend *b, stream *s, i
if (mnstr_write(s, " # type\n", 8, 1) != 1)
return -4;
if (b->client->client_library) {
- char *p = strstr(b->client->client_library, "libmapi ");
+ const char *p = strstr(b->client->client_library, "libmapi ");
if (p != NULL) {
p += 8; /* position after
"libmapi " */
if (isdigit((unsigned char) *p))
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]