2016-02-08 17:45 GMT-02:00 Adam Jackson <[email protected]>: > > This introduces a warning: > > kdrive.c:1217:1: warning: no previous prototype for > 'systemd_logind_release_fd' [-Wmissing-prototypes] > systemd_logind_release_fd(int _major, int _minor, int fd) > ^ > kdrive.c:1222:1: warning: no previous prototype for > 'systemd_logind_vtenter' [-Wmissing-prototypes] > systemd_logind_vtenter(void)
^ > OK. I've just introduced the prototypes in kdrive.c itself (so I don't need to #include <systemd-logind.h>). These warnings are now gone. This seems like the sort of comment where the act of writing it is a > sign that the code must be wrong. Why is RemoveDevice not closing the > fd for you? > I'm not sure why it happens, but without this "redundant" check around RemoveDevice(), if I unplug the mouse, replug it and start moving it, Xephyr segfaults. -- *Laércio de Sousa* *Orientador de Informática* *Escola Municipal "Professor Eulálio Gruppi"* *Rua Ismael da Silva Mello, 559, Mogi Moderno* *Mogi das Cruzes - SPCEP 08717-390* Telefone: (11) 4726-8313
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
