diff options
author | nate <nate@FreeBSD.org> | 1997-11-25 19:15:59 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1997-11-25 19:15:59 +0000 |
commit | ccb0bee3d4f61a9278e47b48086b6017e030804f (patch) | |
tree | 2f39673cc8504373fdeaf19d7436afed6383f284 | |
parent | 494f67f706a79c7454dbeabe549081cd66c161aa (diff) | |
download | FreeBSD-src-ccb0bee3d4f61a9278e47b48086b6017e030804f.zip FreeBSD-src-ccb0bee3d4f61a9278e47b48086b6017e030804f.tar.gz |
- Don't worry about the previous state of the card (insert/removed), and
instead Do The Right Thing when the kernel states a card was
inserted/removed. This isn't a complete fix, but better than nothing.
Reviewed by: Guido van Rooij <guido@gvr.org>
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index b09fbcd..4b392a5 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id: cardd.c,v 1.20 1997/10/28 17:51:25 nate Exp $"; + "$Id: cardd.c,v 1.21 1997/11/19 02:31:37 nate Exp $"; #endif /* not lint */ #include <fcntl.h> @@ -216,8 +216,10 @@ slot_change(struct slot *sp) logerr("ioctl (PIOCGSTATE)"); return; } +#ifdef DEBUG if (state.state == sp->state) - return; + logmsg("State same as before, continuing anyway"); +#endif sp->state = state.state; switch (sp->state) { case empty: |