Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f10dc
)
Improve error reporting in dc_queuecmd.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 4 Dec 2007 15:56:38 +0000
(16:56 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 4 Dec 2007 15:56:38 +0000
(16:56 +0100)
lib/uilib.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/uilib.c
b/lib/uilib.c
index
b235105
..
26429f8
100644
(file)
--- a/
lib/uilib.c
+++ b/
lib/uilib.c
@@
-212,8
+212,10
@@
static struct qcmd *makeqcmd(wchar_t *name)
if((cmd->name != NULL) && !wcscmp(cmd->name, name))
break;
}
- if(cmd == NULL)
+ if(cmd == NULL) {
+ errno = ENOSYS; /* Bleh */
return(NULL);
+ }
}
new = smalloc(sizeof(*new));
new->tag = tag++;
@@
-497,6
+499,7
@@
int dc_queuecmd(int (*callback)(struct dc_response *), void *data, ...)
} else {
if(buf != NULL)
free(buf);
+ errno = EINVAL;
return(-1);
}
} else {