Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys u_{long, short, char} -> unsigned {long, short, char}



details:   https://anonhg.NetBSD.org/src/rev/05014d022669
branches:  trunk
changeset: 343112:05014d022669
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Jan 22 23:42:14 2016 +0000

description:
u_{long,short,char} -> unsigned {long,short,char}

XXX: the structure in here incurs unwanted padding on LP64 platforms.

diffstat:

 sys/sys/scanio.h |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (53 lines):

diff -r 9f4dc58912c5 -r 05014d022669 sys/sys/scanio.h
--- a/sys/sys/scanio.h  Fri Jan 22 23:38:45 2016 +0000
+++ b/sys/sys/scanio.h  Fri Jan 22 23:42:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scanio.h,v 1.3 2015/09/06 06:01:02 dholland Exp $      */
+/*     $NetBSD: scanio.h,v 1.4 2016/01/22 23:42:14 dholland Exp $      */
 
 /*
  * Copyright (c) 1995 Kenneth Stailey.  All rights reserved.
@@ -57,28 +57,28 @@
  */
 
 struct scan_io {
-       u_long  scan_width;              /* width in 1/1200ths of an inch */
-       u_long  scan_height;             /* height in 1/1200ths of an inch */
+       unsigned long   scan_width;      /* width in 1/1200ths of an inch */
+       unsigned long   scan_height;     /* height in 1/1200ths of an inch */
 #ifdef SCAN_BC
 # define scan_window_width scan_width
 # define scan_window_length scan_height
 #endif
-       u_short scan_x_resolution;      /* horizontal resolution in dots-per-inch */
-       u_short scan_y_resolution;      /* vertical resolution in dots-per-inch */
-       u_long  scan_x_origin;          /* horizontal coordinate of upper left corner */
-       u_long  scan_y_origin;          /* vertical coordinate of upper left corner */
-       u_char  scan_image_mode;        /* type of image data sent by scanner */
-       u_char  scan_brightness;        /* brightness control for those to can do it */
-       u_char  scan_contrast;          /* contrast control for those to can do it */
-       u_char  scan_quality;           /* speed of scan for instance */
+       unsigned short scan_x_resolution;/* horizontal resolution in dots-per-inch */
+       unsigned short scan_y_resolution;/* vertical resolution in dots-per-inch */
+       unsigned long scan_x_origin;    /* horizontal coordinate of upper left corner */
+       unsigned long scan_y_origin;    /* vertical coordinate of upper left corner */
+       unsigned char scan_image_mode;  /* type of image data sent by scanner */
+       unsigned char scan_brightness;  /* brightness control for those to can do it */
+       unsigned char scan_contrast;    /* contrast control for those to can do it */
+       unsigned char scan_quality;     /* speed of scan for instance */
 #ifdef SCAN_BC
 # define scan_velocity scan_quality
 #endif
-       u_long  scan_window_size;       /* size of window in bytes (ro) */
-       u_long  scan_lines;             /* number of pixels per column (ro) */
-       u_long  scan_pixels_per_line;   /* number of pixels per line (ro) */
-       u_short scan_bits_per_pixel;    /* number of bits per pixel (ro) */
-       u_char  scan_scanner_type;      /* type of scanner (ro) */
+       unsigned long scan_window_size; /* size of window in bytes (ro) */
+       unsigned long scan_lines;       /* number of pixels per column (ro) */
+       unsigned long scan_pixels_per_line;     /* number of pixels per line (ro) */
+       unsigned short scan_bits_per_pixel;     /* number of bits per pixel (ro) */
+       unsigned char scan_scanner_type;        /* type of scanner (ro) */
 };
 
 /*



Home | Main Index | Thread Index | Old Index