+ bell = 0, duration = 0, pitch = 0;
variable "bell" is being initialized to zero on line 861 of kbdcontrol.c, so I'm affraid this won't work.