[AD] smallest patch ever ? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Index: lmseps2.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/linux/lmseps2.c,v
retrieving revision 1.3
diff -U3 -r1.3 lmseps2.c
--- lmseps2.c 2000/12/01 04:19:31 1.3
+++ lmseps2.c 2001/05/04 09:37:18
@@ -173,7 +173,7 @@
/* Put Intellimouse into wheel mode */
if (intellimouse) {
int fd = open (device, O_WRONLY);
- if (fd > 0) {
+ if (fd >= 0) {
wakeup_im (fd);
close (fd);
}
technically, 0 is a valid file descriptor, but then 0 will be stdin
in 99.999999% of cases, but i just thought i'd patch that :)
feel free to discard if you prefer to leave it that way.
--
Lyrian