Changeset: 0962297130a1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0962297130a1
Modified Files:
clients/mapiclient/tomograph.c
common/utils/msabaoth.c
Branch: Feb2013
Log Message:
Replace struct copying by struct assignment.
diffs (24 lines):
diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -1145,7 +1145,7 @@ static void showcolormap(char *filename,
* "*.*" stays first (colors[0]) */
_clrs_ = (Color*) malloc (sizeof(colors));
if (_clrs_) {
- memcpy (_clrs_, colors, sizeof(colors));
+ *_clrs_ = *colors;
qsort (_clrs_, NUM_COLORS, sizeof(Color), cmp_clr);
clrs = _clrs_;
}
diff --git a/common/utils/msabaoth.c b/common/utils/msabaoth.c
--- a/common/utils/msabaoth.c
+++ b/common/utils/msabaoth.c
@@ -763,7 +763,7 @@ msab_getUplogInfo(sabuplog *ret, const s
/* early bailout if cached */
if (db->uplog != NULL) {
- memcpy(ret, db->uplog, sizeof(sabuplog));
+ *ret = *db->uplog;
return(NULL);
}
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list