Changeset: 36ec66979686 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=36ec66979686
Modified Files:
clients/mapiclient/stethoscope.c
clients/mapiclient/tomograph.c
Branch: default
Log Message:
stethoscope & tomograph: backing-out changeset 8acc8d2b1ffb
No more need for down-casts; the code had been fixed in changesets
f4ddd6705bf0 & c1796d6e9327 by using matching types (size & signedness).
diffs (24 lines):
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -291,7 +291,7 @@ main(int argc, char **argv)
if (*response) {
if (debug)
printf("LASTLINE:%s", response);
- len = (int) strlen(response);
+ len = strlen(response);
strncpy(buf, response, len + 1);
} else
len = 0;
diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -1949,7 +1949,7 @@ main(int argc, char **argv)
if (*response) {
if (debug)
fprintf(stderr,"LASTLINE:%s", response);
- len = (int)strlen(response);
+ len = strlen(response);
strncpy(buf, response, len + 1);
} else
len = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list