diff options
author | germeier <germeier> | 2002-09-18 23:17:03 +0000 |
---|---|---|
committer | germeier <germeier> | 2002-09-18 23:17:03 +0000 |
commit | 2dd8def5573f6dbf9e8ab2752778b0bffce15637 (patch) | |
tree | b4f18bc44c47680596b52aeb8c8dacc1a05efba4 /mpiosh | |
parent | 71ab9acfd97cf1f71c1f66f5e1a8b879c0960e40 (diff) | |
download | mpiosh-2dd8def5573f6dbf9e8ab2752778b0bffce15637.tar.gz mpiosh-2dd8def5573f6dbf9e8ab2752778b0bffce15637.tar.bz2 mpiosh-2dd8def5573f6dbf9e8ab2752778b0bffce15637.zip |
fixed check in mpiosh_cmd_mem
added code to check for internal memory before we use it (don't ask! :-)
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <crunchy@tzi.de> * - * $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 <crunchy@tzi.de> * @@ -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"); |