From 2dd8def5573f6dbf9e8ab2752778b0bffce15637 Mon Sep 17 00:00:00 2001 From: germeier Date: Wed, 18 Sep 2002 23:17:03 +0000 Subject: fixed check in mpiosh_cmd_mem added code to check for internal memory before we use it (don't ask! :-) --- mpiosh/callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpiosh') diff --git a/mpiosh/callback.c b/mpiosh/callback.c index bdcb345..798dab6 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -2,7 +2,7 @@ * * Author: Andreas Büsching * - * $Id: callback.c,v 1.10 2002/09/18 22:18:29 germeier Exp $ + * $Id: callback.c,v 1.11 2002/09/18 23:17:03 germeier Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -166,7 +166,7 @@ mpiosh_cmd_mem(char *args[]) MPIOSH_CHECK_ARG; if (!strcmp(args[0], "e")) { - if (mpio_memory_free(mpiosh.dev, mpiosh.card, &free)) { + if (mpio_memory_free(mpiosh.dev, MPIO_EXTERNAL_MEM, &free)) { mpiosh.card = MPIO_EXTERNAL_MEM; mpiosh.prompt = PROMPT_EXT; printf("external memory card is selected\n"); -- cgit v1.2.3