Changeset: 999e26305b37 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=999e26305b37
Modified Files:
        clients/mapiclient/ReadlineTools.c
Branch: Feb2013
Log Message:

Use some better types.


diffs (29 lines):

diff --git a/clients/mapiclient/ReadlineTools.c 
b/clients/mapiclient/ReadlineTools.c
--- a/clients/mapiclient/ReadlineTools.c
+++ b/clients/mapiclient/ReadlineTools.c
@@ -70,7 +70,6 @@ sql_tablename_generator(const char *text
 
        static int seekpos, len, rowcount;
        static MapiHdl table_hdl;
-       char *name;
 
        if (!state) {
                seekpos = 0;
@@ -88,12 +87,15 @@ sql_tablename_generator(const char *text
        }
 
        while (seekpos < rowcount) {
+               const char *name;
+
                mapi_seek_row(table_hdl, seekpos++, MAPI_SEEK_SET);
                mapi_fetch_row(table_hdl);
                name = mapi_fetch_field(table_hdl, 0);
                if (strncmp(name, text, len) == 0) {
-                       char *s, *schema = mapi_fetch_field(table_hdl, 1);
-                       int l1 = strlen(name), l2 = strlen(schema);
+                       char *s;
+                       const char *schema = mapi_fetch_field(table_hdl, 1);
+                       size_t l1 = strlen(name), l2 = strlen(schema);
 
                        s = malloc(l1 + l2 + 2);
                        s[0] = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to