summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-08-28 17:58:30 +0000
committerjkim <jkim@FreeBSD.org>2013-08-28 17:58:30 +0000
commit77c4dc92ec8722e52cfa36ba7a5cdf6b4ae3f4d7 (patch)
treeed19ddb5472ef763430fa5d29a798204e85b3dd4
parent2cba18824681bafe7c24ecda512ed142ee4d2507 (diff)
downloadFreeBSD-src-77c4dc92ec8722e52cfa36ba7a5cdf6b4ae3f4d7.zip
FreeBSD-src-77c4dc92ec8722e52cfa36ba7a5cdf6b4ae3f4d7.tar.gz
Avoid unnecessary signedness conversion.
-rw-r--r--sys/dev/fb/vesa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index 82fbeac..6d56193 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -83,7 +83,7 @@ static struct mtx vesa_lock;
static int vesa_state;
static void *vesa_state_buf;
static uint32_t vesa_state_buf_offs;
-static ssize_t vesa_state_buf_size;
+static size_t vesa_state_buf_size;
static u_char *vesa_palette;
static uint32_t vesa_palette_offs;
@@ -207,7 +207,7 @@ static int vesa_bios_load_palette2(int start, int colors, u_char *r, u_char *g,
#define STATE_SIZE 0
#define STATE_SAVE 1
#define STATE_LOAD 2
-static ssize_t vesa_bios_state_buf_size(int);
+static size_t vesa_bios_state_buf_size(int);
static int vesa_bios_save_restore(int code, void *p);
#ifdef MODE_TABLE_BROKEN
static int vesa_bios_get_line_length(void);
@@ -505,7 +505,7 @@ vesa_bios_load_palette2(int start, int colors, u_char *r, u_char *g, u_char *b,
return (regs.R_AX != 0x004f);
}
-static ssize_t
+static size_t
vesa_bios_state_buf_size(int state)
{
x86regs_t regs;
OpenPOWER on IntegriCloud