diff options
author | Alex Deucher <alex@botch2.(none)> | 2007-12-19 11:54:50 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2007-12-19 11:54:50 -0500 |
commit | c1b0b69cc50516c3b7e881b0eb46cb3cd2e9dce6 (patch) | |
tree | b0880ebb435f45d4292eaf63dd69aac392eb7178 /src/radeon_output.c | |
parent | 0e6634870d1ab38ee8c83f6bda1ba60364997853 (diff) | |
parent | ce4fa1cedec0cf56b9979dfaa12a8d3a7c643df4 (diff) |
Merge branch 'master' of ssh://agd5f@git.freedesktop.org/git/xorg/driver/xf86-video-ati
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r-- | src/radeon_output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c index 115666d8..9850702c 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -699,15 +699,18 @@ RADEONDetectLidStatus(ScrnInfoPtr pScrn) while (fgets(lidline, sizeof lidline, f)) { if (!strncmp(lidline, "state:", strlen ("state:"))) { if (strstr(lidline, "open")) { + fclose(f); ErrorF("proc lid open\n"); return MT_LCD; } else if (strstr(lidline, "closed")) { + fclose(f); ErrorF("proc lid closed\n"); return MT_NONE; } } } + fclose(f); } #endif |