diff options
| author | Mike Beattie <mike@ethernal.org> | 2012-08-08 06:46:56 +1200 |
|---|---|---|
| committer | Mike Beattie <mike@ethernal.org> | 2012-08-08 06:46:56 +1200 |
| commit | bd02349111ae0f39b320e6a10a330051ddc39fdf (patch) | |
| tree | ab7a29204eea195db77aa302fbe3e2012ef5049e /altosui/libaltos/libaltos.c | |
| parent | 8e4ebd1f6eb928b5cb7bcda4ed88851aa9e61bdf (diff) | |
| parent | c7f228503870c44dfd278ede8b0980dbac73d3c7 (diff) | |
Merge branch 'master' of git://git.gag.com/fw/altos
Diffstat (limited to 'altosui/libaltos/libaltos.c')
| -rw-r--r-- | altosui/libaltos/libaltos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/libaltos/libaltos.c b/altosui/libaltos/libaltos.c index 1cc27cbe..515432f9 100644 --- a/altosui/libaltos/libaltos.c +++ b/altosui/libaltos/libaltos.c @@ -221,7 +221,7 @@ altos_flush(struct altos_file *file) #endif if (ret < 0) { altos_set_last_posix_error(); - return -errno; + return -last_error.code; } if (ret) { memmove(file->out_data, file->out_data + ret, @@ -247,7 +247,7 @@ altos_putchar(struct altos_file *file, char c) ret = 0; if (file->out_used == USB_BUF_SIZE) ret = altos_flush(file); - return 0; + return ret; } #ifdef USE_POLL |
