diff options
author | crunchy <crunchy> | 2002-09-19 20:46:02 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2002-09-19 20:46:02 +0000 |
commit | 7eb36f9021e86a75fd291b6aae424117a230134d (patch) | |
tree | 293f43fd20451bd1becc3a9aa84d26b3d76f0fbb /mpiosh | |
parent | 652175f6669f3ab57a7b7b4bdf3af8e4ea29a13a (diff) | |
download | mpiosh-7eb36f9021e86a75fd291b6aae424117a230134d.tar.gz mpiosh-7eb36f9021e86a75fd291b6aae424117a230134d.tar.bz2 mpiosh-7eb36f9021e86a75fd291b6aae424117a230134d.zip |
added error handing functions
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/callback.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mpiosh/callback.c b/mpiosh/callback.c index 798dab6..1a02b04 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.11 2002/09/18 23:17:03 germeier Exp $ + * $Id: callback.c,v 1.12 2002/09/19 20:46:02 crunchy Exp $ * * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de> * @@ -355,10 +355,9 @@ mpiosh_cmd_mput(char *args[]) for (j = 0; j < size; j++, run++) { if (!(error = regexec(®ex, (*run)->d_name, 0, NULL, 0))) { printf("putting '%s' ... \n", (*run)->d_name); - fsize = mpio_file_put(mpiosh.dev, mpiosh.card, - (*run)->d_name, mpiosh_callback_put); - if ((fsize < 0) && (fsize == MPIO_ERR_NOT_ENOUGH_SPACE)) { - fprintf(stderr, "error: not enough space left on memory card\n"); + if (mpio_file_put(mpiosh.dev, mpiosh.card, + (*run)->d_name, mpiosh_callback_put) == -1) { + mpio_perror("error"); break; } |