aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-07-14 19:32:40 +0000
committerEric Andersen <andersen@codepoet.org>2003-07-14 19:32:40 +0000
commit1eceb127bd189bf377b6f25dfce04d61e25d89d2 (patch)
treecc79a9f69bc9b07883b1f7fa28ec185657014e5c
parentb7ebc61b54ff542935ff4216f80ea53103e8dcf2 (diff)
downloadbusybox-w32-1eceb127bd189bf377b6f25dfce04d61e25d89d2.tar.gz
busybox-w32-1eceb127bd189bf377b6f25dfce04d61e25d89d2.tar.bz2
busybox-w32-1eceb127bd189bf377b6f25dfce04d61e25d89d2.zip
Use standard types
-rw-r--r--util-linux/fbset.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index afd9e64be..f66ebe546 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -31,6 +31,7 @@
31#include <errno.h> 31#include <errno.h>
32#include <ctype.h> 32#include <ctype.h>
33#include <string.h> 33#include <string.h>
34#include <stdint.h>
34#include <sys/ioctl.h> 35#include <sys/ioctl.h>
35#include "busybox.h" 36#include "busybox.h"
36 37
@@ -85,49 +86,48 @@ static unsigned int g_options = 0;
85/* Stuff stolen from the kernel's fb.h */ 86/* Stuff stolen from the kernel's fb.h */
86static const int FBIOGET_VSCREENINFO = 0x4600; 87static const int FBIOGET_VSCREENINFO = 0x4600;
87static const int FBIOPUT_VSCREENINFO = 0x4601; 88static const int FBIOPUT_VSCREENINFO = 0x4601;
88#define __u32 u_int32_t
89struct fb_bitfield { 89struct fb_bitfield {
90 __u32 offset; /* beginning of bitfield */ 90 uint32_t offset; /* beginning of bitfield */
91 __u32 length; /* length of bitfield */ 91 uint32_t length; /* length of bitfield */
92 __u32 msb_right; /* != 0 : Most significant bit is */ 92 uint32_t msb_right; /* != 0 : Most significant bit is */
93 /* right */ 93 /* right */
94}; 94};
95struct fb_var_screeninfo { 95struct fb_var_screeninfo {
96 __u32 xres; /* visible resolution */ 96 uint32_t xres; /* visible resolution */
97 __u32 yres; 97 uint32_t yres;
98 __u32 xres_virtual; /* virtual resolution */ 98 uint32_t xres_virtual; /* virtual resolution */
99 __u32 yres_virtual; 99 uint32_t yres_virtual;
100 __u32 xoffset; /* offset from virtual to visible */ 100 uint32_t xoffset; /* offset from virtual to visible */
101 __u32 yoffset; /* resolution */ 101 uint32_t yoffset; /* resolution */
102 102
103 __u32 bits_per_pixel; /* guess what */ 103 uint32_t bits_per_pixel; /* guess what */
104 __u32 grayscale; /* != 0 Graylevels instead of colors */ 104 uint32_t grayscale; /* != 0 Graylevels instead of colors */
105 105
106 struct fb_bitfield red; /* bitfield in fb mem if true color, */ 106 struct fb_bitfield red; /* bitfield in fb mem if true color, */
107 struct fb_bitfield green; /* else only length is significant */ 107 struct fb_bitfield green; /* else only length is significant */
108 struct fb_bitfield blue; 108 struct fb_bitfield blue;
109 struct fb_bitfield transp; /* transparency */ 109 struct fb_bitfield transp; /* transparency */
110 110
111 __u32 nonstd; /* != 0 Non standard pixel format */ 111 uint32_t nonstd; /* != 0 Non standard pixel format */
112 112
113 __u32 activate; /* see FB_ACTIVATE_* */ 113 uint32_t activate; /* see FB_ACTIVATE_* */
114 114
115 __u32 height; /* height of picture in mm */ 115 uint32_t height; /* height of picture in mm */
116 __u32 width; /* width of picture in mm */ 116 uint32_t width; /* width of picture in mm */
117 117
118 __u32 accel_flags; /* acceleration flags (hints) */ 118 uint32_t accel_flags; /* acceleration flags (hints) */
119 119
120 /* Timing: All values in pixclocks, except pixclock (of course) */ 120 /* Timing: All values in pixclocks, except pixclock (of course) */
121 __u32 pixclock; /* pixel clock in ps (pico seconds) */ 121 uint32_t pixclock; /* pixel clock in ps (pico seconds) */
122 __u32 left_margin; /* time from sync to picture */ 122 uint32_t left_margin; /* time from sync to picture */
123 __u32 right_margin; /* time from picture to sync */ 123 uint32_t right_margin; /* time from picture to sync */
124 __u32 upper_margin; /* time from sync to picture */ 124 uint32_t upper_margin; /* time from sync to picture */
125 __u32 lower_margin; 125 uint32_t lower_margin;
126 __u32 hsync_len; /* length of horizontal sync */ 126 uint32_t hsync_len; /* length of horizontal sync */
127 __u32 vsync_len; /* length of vertical sync */ 127 uint32_t vsync_len; /* length of vertical sync */
128 __u32 sync; /* see FB_SYNC_* */ 128 uint32_t sync; /* see FB_SYNC_* */
129 __u32 vmode; /* see FB_VMODE_* */ 129 uint32_t vmode; /* see FB_VMODE_* */
130 __u32 reserved[6]; /* Reserved for future compatibility */ 130 uint32_t reserved[6]; /* Reserved for future compatibility */
131}; 131};
132 132
133 133