aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWilliam Lee Irwin III <wli@holomorphy.com>2005-01-10 17:22:25 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-10 17:22:25 -0800
commit3fe8123931f57a1c056f3828f9f33aabd30b6f88 (patch)
treeb4cb3da8cb7458ae41b7682fc2cbc24af43afaf6 /drivers
parent28c947d5fa6198065f2334f63eba25ae1e2076a8 (diff)
downloadhistory-3fe8123931f57a1c056f3828f9f33aabd30b6f88.tar.gz
[PATCH] fix module_param() type mismatch in drivers/char/n_hdlc.c
maxframe is a variable of type ssize_t; this patch repairs the warning arising from the type mismatch in the module_param() declaration. Signed-off-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/n_hdlc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/n_hdlc.c b/drivers/char/n_hdlc.c
index 0256d5823504da..24ccc233b21399 100644
--- a/drivers/char/n_hdlc.c
+++ b/drivers/char/n_hdlc.c
@@ -177,7 +177,7 @@ static struct n_hdlc *n_hdlc_alloc (void);
static int debuglevel;
/* max frame size for memory allocations */
-static ssize_t maxframe = 4096;
+static int maxframe = 4096;
/* TTY callbacks */
@@ -672,7 +672,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,
if (debuglevel & DEBUG_LEVEL_INFO)
printk (KERN_WARNING
"n_hdlc_tty_write: truncating user packet "
- "from %lu to %Zd\n", (unsigned long) count,
+ "from %lu to %d\n", (unsigned long) count,
maxframe );
count = maxframe;
}