Changeset: 63d5751aa1de for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=63d5751aa1de
Modified Files:
        clients/Tests/exports.stable.out
        monetdb5/mal/mal_session.c
        monetdb5/mal/mal_session.h
Branch: default
Log Message:

Use actual type for function argument.


diffs (47 lines):

diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -1473,7 +1473,7 @@ str MSinitClientPrg(Client cntxt, str mo
 void MSresetInstructions(MalBlkPtr mb, int start);
 void MSresetVariables(Client cntxt, MalBlkPtr mb, MalStkPtr glb, int start);
 void MSscheduleClient(str command, str challenge, bstream *fin, stream *fout, 
protocol_version protocol, size_t blocksize);
-str MSserveClient(void *dummy);
+str MSserveClient(Client cntxt);
 str MTIMEanalyticalrangebounds(BAT *r, BAT *b, BAT *p, BAT *l, const void 
*restrict bound, int tp1, int tp2, bool preceding, lng first_half);
 str MTIMEcompute_rule_foryear(date *ret, const rule *val, const int *year);
 str MTIMEcurrent_date(date *d);
diff --git a/monetdb5/mal/mal_session.c b/monetdb5/mal/mal_session.c
--- a/monetdb5/mal/mal_session.c
+++ b/monetdb5/mal/mal_session.c
@@ -485,15 +485,14 @@ MSresetVariables(Client cntxt, MalBlkPtr
 }
 
 /*
- * This is a phtread started function.  Here we start the client. We
- * need to initialize and allocate space for the global variables.
- * Thereafter it is up to the scenario interpreter to process input.
+ * Here we start the client.  We need to initialize and allocate space
+ * for the global variables.  Thereafter it is up to the scenario
+ * interpreter to process input.
  */
 str
-MSserveClient(void *dummy)
+MSserveClient(Client c)
 {
        MalBlkPtr mb;
-       Client c = (Client) dummy;
        str msg = 0;
 
        if (!isAdministrator(c) && MCinitClientThread(c) < 0) {
diff --git a/monetdb5/mal/mal_session.h b/monetdb5/mal/mal_session.h
--- a/monetdb5/mal/mal_session.h
+++ b/monetdb5/mal/mal_session.h
@@ -12,7 +12,7 @@
 #include "mal_scenario.h"
 
 mal_export str malBootstrap(void);
-mal_export str MSserveClient(void *dummy);
+mal_export str MSserveClient(Client cntxt);
 mal_export str MSinitClientPrg(Client cntxt, str mod, str nme);
 mal_export void MSscheduleClient(str command, str challenge, bstream *fin, 
stream *fout, protocol_version protocol, size_t blocksize);
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to