static void store_gpm_state(int fd)
{
+ if (fd < 0) {
+ warn_when_safe(Qnil, Qcritical, "store_gpm_state negative fd - %d",
+ fd);
+ return;
+ }
gpm_state_information[fd].gpm_tried = gpm_tried;
gpm_state_information[fd].gpm_flag = gpm_flag;
gpm_state_information[fd].gpm_stack = gpm_stack;
static void restore_gpm_state(int fd)
{
+ if (fd < 0) {
+ warn_when_safe(Qnil, Qcritical, "restore_gpm_state negative fd - %d",
+ fd);
+ return;
+ }
gpm_tried = gpm_state_information[fd].gpm_tried;
gpm_flag = gpm_state_information[fd].gpm_flag;
gpm_stack = gpm_state_information[fd].gpm_stack;