summaryrefslogtreecommitdiffstats
path: root/bin/chio
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-03-05 05:28:49 +0000
committerimp <imp@FreeBSD.org>2002-03-05 05:28:49 +0000
commitf0662fdefd5d8351de4d668334941bb48e8d63c6 (patch)
tree86437a0771f100b2fbb317a5d76ecf25fe2dcce4 /bin/chio
parent210ccec69008253f05628e2990d36c9b26a4ec3a (diff)
downloadFreeBSD-src-f0662fdefd5d8351de4d668334941bb48e8d63c6.zip
FreeBSD-src-f0662fdefd5d8351de4d668334941bb48e8d63c6.tar.gz
Use ANSI-99 int names (uintXX_t) over traditional BSD int names
(u_intXX_t).
Diffstat (limited to 'bin/chio')
-rw-r--r--bin/chio/chio.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c
index ce0cb38..9a7af0e 100644
--- a/bin/chio/chio.c
+++ b/bin/chio/chio.c
@@ -47,6 +47,7 @@ static const char rcsid[] =
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -65,7 +66,7 @@ static int parse_special(char *);
static int is_special(char *);
static const char *bits_to_string(ces_status_flags, const char *);
-static void find_element(char *, u_int16_t *, u_int16_t *);
+static void find_element(char *, uint16_t *, uint16_t *);
static struct changer_element_status *get_element_status
(unsigned int, unsigned int);
@@ -943,7 +944,7 @@ do_return(const char *cname, int argc, char **argv)
{
struct changer_element_status *ces;
struct changer_move cmd;
- u_int16_t type, element;
+ uint16_t type, element;
++argv; --argc;
@@ -1015,8 +1016,8 @@ get_element_status(unsigned int type, unsigned int element)
(void)memset(&cesr, 0, sizeof(cesr));
- cesr.cesr_element_type = (u_int16_t)type;
- cesr.cesr_element_base = (u_int16_t)element;
+ cesr.cesr_element_type = (uint16_t)type;
+ cesr.cesr_element_base = (uint16_t)element;
cesr.cesr_element_count = 1; /* Only this one element */
cesr.cesr_flags |= CESR_VOLTAGS; /* Grab voltags as well */
cesr.cesr_element_status = ces;
@@ -1039,7 +1040,7 @@ get_element_status(unsigned int type, unsigned int element)
* and iterate until we find a match, or crap out.
*/
static void
-find_element(char *voltag, u_int16_t *et, u_int16_t *eu)
+find_element(char *voltag, uint16_t *et, uint16_t *eu)
{
struct changer_params cp;
struct changer_element_status_request cesr;
OpenPOWER on IntegriCloud