diff options
| author | Brian Somers <brian@FreeBSD.org> | 2001-08-20 15:09:34 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2001-08-20 15:09:34 +0000 |
| commit | 2313781df23654556cd7d08ca63c3fc184ef1b63 (patch) | |
| tree | e4cd080245144f4b39a65872690adec1ed0c8bda /usr.sbin/apmd | |
| parent | f0183cc46aa18095dea6ce4d9b52acd69836baca (diff) | |
Notes
Diffstat (limited to 'usr.sbin/apmd')
| -rw-r--r-- | usr.sbin/apmd/contrib/pccardq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/apmd/contrib/pccardq.c b/usr.sbin/apmd/contrib/pccardq.c index 1c551a149039..1562c55f0620 100644 --- a/usr.sbin/apmd/contrib/pccardq.c +++ b/usr.sbin/apmd/contrib/pccardq.c @@ -164,7 +164,7 @@ get_slot_info(int so, int slot, char **manuf, char **version, char char *_version; char *_device; - if ((slen = snprintf(buf, sizeof buf, "N%d", slot)) == -1) { + if ((slen = snprintf(buf, sizeof buf, "N%d", slot)) < 0) { warnc(0, "write"); goto err; } |
