aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-03-07 15:01:58 +0000
committerschnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-03-07 15:01:58 +0000
commitec76d92c55ac039367eac99e761d11aa62663fb1 (patch)
treefae7ebd4d801e6b9218c88f77e2148b6595646c6 /src
parentdcce007f3824009b46e8da2947247df64fc77bb0 (diff)
Use correct type CCTK_INT instead of int when calling aliased functions
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@74 eec4d7dc-71c2-46d6-addf-10296150bf52
Diffstat (limited to 'src')
-rw-r--r--src/ApplyCartoon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ApplyCartoon.c b/src/ApplyCartoon.c
index 7f5c040..a203105 100644
--- a/src/ApplyCartoon.c
+++ b/src/ApplyCartoon.c
@@ -79,7 +79,8 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS);
void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTS;
- int num_vars, *vars, err, i, gi, group_tags_table;
+ int num_vars, err, i, gi, group_tags_table;
+ CCTK_INT * vars;
char tensortype[TENSORTYPE_BUFF_SIZE];
/* Allocate memory to hold selected bcs */
@@ -87,7 +88,7 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) {
#ifdef DEBUG
printf("Cartoon_ApplyBoundaries: num_vars is %d\n",num_vars);
#endif
- vars = (int *) malloc(num_vars*sizeof(int));
+ vars = malloc(num_vars*sizeof *vars);
/* get all selected vars */
err = Boundary_SelectedGVs(cctkGH, num_vars, vars, NULL, NULL, NULL, NULL);