From 63da0bf3319b104081650a5519ed76d5e2f78e48 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Fri, 25 Oct 2013 13:09:25 +0200 Subject: Moved variable declarations to make MSVC happy. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 2cfbc05..8a8a9dd 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -7274,6 +7274,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add tng_chain_t *chain) { int64_t i; + tng_chain_t new_chains; tng_function_status stat; stat = tng_check_trajectory_container(tng_data); @@ -7284,8 +7285,6 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add return(stat); } - tng_chain_t new_chains; - new_chains = realloc(molecule->chains, sizeof(struct tng_chain) * (molecule->n_chains + 1)); @@ -14515,6 +14514,7 @@ tng_function_status DECLSPECDLLEXPORT tng_time_get_str char *time) { struct tm *time_data; + time_t secs; tng_function_status stat; stat = tng_check_trajectory_container(tng_data); @@ -14525,8 +14525,6 @@ tng_function_status DECLSPECDLLEXPORT tng_time_get_str return(stat); } - time_t secs; - secs = tng_data->time; time_data = localtime(&secs); /* Returns a statically allocated variable. */ -- cgit v0.10.1