Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pckbport const-ify input command buffer argument to
details: https://anonhg.NetBSD.org/src/rev/45c173ac635d
branches: trunk
changeset: 769423:45c173ac635d
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Sep 09 14:00:01 2011 +0000
description:
const-ify input command buffer argument to
pckbport_poll_cmd and pckbport_enqueue_cmd.
diffstat:
sys/dev/pckbport/pckbport.c | 10 +++++-----
sys/dev/pckbport/pckbportvar.h | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (59 lines):
diff -r 84ec98e920f2 -r 45c173ac635d sys/dev/pckbport/pckbport.c
--- a/sys/dev/pckbport/pckbport.c Fri Sep 09 13:29:23 2011 +0000
+++ b/sys/dev/pckbport/pckbport.c Fri Sep 09 14:00:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbport.c,v 1.13 2008/03/15 18:59:07 cube Exp $ */
+/* $NetBSD: pckbport.c,v 1.14 2011/09/09 14:00:01 jakllsch Exp $ */
/*
* Copyright (c) 2004 Ben Harris
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbport.c,v 1.13 2008/03/15 18:59:07 cube Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbport.c,v 1.14 2011/09/09 14:00:01 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -315,8 +315,8 @@
/* for use in autoconfiguration */
int
-pckbport_poll_cmd(pckbport_tag_t t, pckbport_slot_t slot, u_char *cmd, int len,
- int responselen, u_char *respbuf, int slow)
+pckbport_poll_cmd(pckbport_tag_t t, pckbport_slot_t slot, const u_char *cmd,
+ int len, int responselen, u_char *respbuf, int slow)
{
struct pckbport_devcmd nc;
@@ -493,7 +493,7 @@
* Put command into the device's command queue, return zero or errno.
*/
int
-pckbport_enqueue_cmd(pckbport_tag_t t, pckbport_slot_t slot, u_char *cmd,
+pckbport_enqueue_cmd(pckbport_tag_t t, pckbport_slot_t slot, const u_char *cmd,
int len, int responselen, int sync, u_char *respbuf)
{
struct pckbport_slotdata *q = t->t_slotdata[slot];
diff -r 84ec98e920f2 -r 45c173ac635d sys/dev/pckbport/pckbportvar.h
--- a/sys/dev/pckbport/pckbportvar.h Fri Sep 09 13:29:23 2011 +0000
+++ b/sys/dev/pckbport/pckbportvar.h Fri Sep 09 14:00:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbportvar.h,v 1.8 2008/03/15 18:59:07 cube Exp $ */
+/* $NetBSD: pckbportvar.h,v 1.9 2011/09/09 14:00:01 jakllsch Exp $ */
/*
* Copyright (c) 2004 Ben Harris
@@ -82,9 +82,9 @@
pckbport_inputfcn, void *, const char *);
void pckbport_flush(pckbport_tag_t, pckbport_slot_t);
-int pckbport_poll_cmd(pckbport_tag_t, pckbport_slot_t, u_char *, int,
+int pckbport_poll_cmd(pckbport_tag_t, pckbport_slot_t, const u_char *, int,
int, u_char *, int);
-int pckbport_enqueue_cmd(pckbport_tag_t, pckbport_slot_t, u_char *, int,
+int pckbport_enqueue_cmd(pckbport_tag_t, pckbport_slot_t, const u_char *, int,
int, int, u_char *);
int pckbport_poll_data(pckbport_tag_t, pckbport_slot_t);
void pckbport_set_poll(pckbport_tag_t, pckbport_slot_t, int);
Home |
Main Index |
Thread Index |
Old Index