Source-Changes-HG archive

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

[src/trunk]: src/sys/sys u_int -> unsigned



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

description:
u_int -> unsigned

diffstat:

 sys/sys/envsys.h |  14 +++++++-------
 sys/sys/fdio.h   |  24 ++++++++++++------------
 2 files changed, 19 insertions(+), 19 deletions(-)

diffs (92 lines):

diff -r a1f740492d31 -r a47267c56e7d sys/sys/envsys.h
--- a/sys/sys/envsys.h  Fri Jan 22 23:31:30 2016 +0000
+++ b/sys/sys/envsys.h  Fri Jan 22 23:33:42 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: envsys.h,v 1.34 2014/05/18 11:46:24 kardel Exp $ */
+/* $NetBSD: envsys.h,v 1.35 2016/01/22 23:33:42 dholland Exp $ */
 
 /*-
  * Copyright (c) 1999, 2007, 2014 The NetBSD Foundation, Inc.
@@ -127,7 +127,7 @@
 /* get sensor data */
 
 struct envsys_tre_data {
-       u_int sensor;
+       unsigned sensor;
        union {                         /* all data is given */
                uint32_t data_us;       /* in microKelvins, */
                int32_t data_s;         /* rpms, volts, amps, */
@@ -136,7 +136,7 @@
 
        uint32_t        warnflags;      /* warning flags */
        uint32_t        validflags;     /* sensor valid flags */
-       u_int           units;          /* type of sensor */
+       unsigned        units;          /* type of sensor */
 };
 typedef struct envsys_tre_data envsys_tre_data_t;
 
@@ -184,11 +184,11 @@
 /* set and check sensor info */
 
 struct envsys_basic_info {
-       u_int   sensor;         /* sensor number */
-       u_int   units;          /* type of sensor */
+       unsigned sensor;        /* sensor number */
+       unsigned units;         /* type of sensor */
        char    desc[33];       /* sensor description */
-       u_int   rfact;          /* for volts, (int)(factor x 10^4) */
-       u_int   rpms;           /* for fans, set nominal RPMs */
+       unsigned rfact;         /* for volts, (int)(factor x 10^4) */
+       unsigned rpms;          /* for fans, set nominal RPMs */
        uint32_t validflags;    /* sensor valid flags */
 };
 typedef struct envsys_basic_info envsys_basic_info_t;
diff -r a1f740492d31 -r a47267c56e7d sys/sys/fdio.h
--- a/sys/sys/fdio.h    Fri Jan 22 23:31:30 2016 +0000
+++ b/sys/sys/fdio.h    Fri Jan 22 23:33:42 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdio.h,v 1.4 2008/04/28 20:24:10 martin Exp $  */
+/*     $NetBSD: fdio.h,v 1.5 2016/01/22 23:35:18 dholland Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
 #define FDFORMAT_VERSION 19961120
 
 struct fdformat_cmd {
-       u_int formatcmd_version;        /* FDFORMAT_VERSION */
+       unsigned formatcmd_version;     /* FDFORMAT_VERSION */
        int head;               /* IN */
        int cylinder;           /* IN */
 };
@@ -54,20 +54,20 @@
 struct fdformat_parms {
 /* list of items taken from i386 formatting glop (NEC 765);
    should be made the union of support needed for other devices. */
-    u_int fdformat_version;    /* rev this when needed; write drivers to
+    unsigned fdformat_version; /* rev this when needed; write drivers to
                                   allow forward compatibility, please,
                                   and add elements to the end of the
                                   structure */
-    u_int nbps;                                /* number of bytes per sector */
-    u_int ncyl;                                /* number of cylinders */
-    u_int nspt;                                /* sectors per track */
-    u_int ntrk;                                /* number of heads/tracks per cyl */
-    u_int stepspercyl;                 /* steps per cylinder */
-    u_int gaplen;                      /* formatting gap length */
-    u_int fillbyte;                    /* formatting fill byte */
-    u_int xfer_rate;                   /* in bits per second; driver
+    unsigned nbps;                     /* number of bytes per sector */
+    unsigned ncyl;                     /* number of cylinders */
+    unsigned nspt;                     /* sectors per track */
+    unsigned ntrk;                     /* number of heads/tracks per cyl */
+    unsigned stepspercyl;              /* steps per cylinder */
+    unsigned gaplen;                   /* formatting gap length */
+    unsigned fillbyte;                 /* formatting fill byte */
+    unsigned xfer_rate;                        /* in bits per second; driver
                                           must convert */
-    u_int interleave;                  /* interleave factor */
+    unsigned interleave;               /* interleave factor */
 };
 
 



Home | Main Index | Thread Index | Old Index