summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/chario.c6
-rw-r--r--device/cirbuf.c2
-rw-r--r--device/cirbuf.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/device/chario.c b/device/chario.c
index c2887d0..91bd8e8 100644
--- a/device/chario.c
+++ b/device/chario.c
@@ -80,9 +80,9 @@ struct ldisc_switch linesw[] = {
/*
* Sizes for input and output circular buffers.
*/
-const int tty_inq_size = 4096; /* big nuf */
-const int tty_outq_size = 2048; /* Must be bigger that tthiwat */
-boolean_t pdma_default = TRUE; /* turn pseudo dma on by default */
+const unsigned int tty_inq_size = 4096; /* big nuf */
+const unsigned int tty_outq_size = 2048; /* Must be bigger that tthiwat */
+boolean_t pdma_default = TRUE; /* turn pseudo dma on by default */
/*
* compute pseudo-dma tables
diff --git a/device/cirbuf.c b/device/cirbuf.c
index 292b888..39b1da2 100644
--- a/device/cirbuf.c
+++ b/device/cirbuf.c
@@ -270,7 +270,7 @@ void cb_clear(struct cirbuf *cb)
void
cb_alloc(
struct cirbuf *cb,
- int buf_size)
+ vm_size_t buf_size)
{
char *buf;
diff --git a/device/cirbuf.h b/device/cirbuf.h
index 5e4360b..64771ce 100644
--- a/device/cirbuf.h
+++ b/device/cirbuf.h
@@ -55,7 +55,7 @@ extern int b_to_q(char *, int, struct cirbuf *);
extern void ndflush(struct cirbuf *, int);
extern void cb_clear(struct cirbuf *);
-extern void cb_alloc(struct cirbuf *, int);
+extern void cb_alloc(struct cirbuf *, vm_size_t);
extern void cb_free(struct cirbuf *);
#endif /* _DEVICE_CIRBUF_H_ */