View | Details | Raw Unified | Return to bug 31483
Collapse All | Expand All

(-)acpiconf.c (-2 / +2 lines)
Lines 50-54 Link Here
50
	fd  = open(ACPIDEV, O_RDWR);
50
	fd  = open(ACPIDEV, O_RDWR);
51
	if (fd == -1) {
51
	if (fd == -1) {
52
		err(1, NULL);
52
		err(1, ACPIDEV);
53
	}
53
	}
54
	if (ioctl(fd, enable, NULL) == -1) {
54
	if (ioctl(fd, enable, NULL) == -1) {
Lines 67-71 Link Here
67
	fd  = open(ACPIDEV, O_RDWR);
67
	fd  = open(ACPIDEV, O_RDWR);
68
	if (fd == -1) {
68
	if (fd == -1) {
69
		err(1, NULL);
69
		err(1, ACPIDEV);
70
	}
70
	}
71
	if (ioctl(fd, ACPIIO_SETSLPSTATE, &sleep_type) == -1) {
71
	if (ioctl(fd, ACPIIO_SETSLPSTATE, &sleep_type) == -1) {

Return to bug 31483