lkml.org 
[lkml]   [2004]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH-2.4.26] ATM cleanup
Hi Marcelo, Chas,

Compiling ATM from 2.4.26-rc1 on alpha says :

mpoa_proc.c: In function `proc_mpc_read':
mpoa_proc.c:117: warning: passing arg 2 of `atm_mpoa_disp_qos' from incompatible pointer type

117: atm_mpoa_disp_qos((char *)page, &length);
it is because length is declared ssize_t (the function's return type),
while atm_mpoa_disp_qos() expects an int. Changing length type to int
clears the warning.

Please apply,
Willy

--- ./net/atm/mpoa_proc.c.orig Sun Mar 28 14:52:17 2004
+++ ./net/atm/mpoa_proc.c Sun Mar 28 14:52:34 2004
@@ -102,7 +102,7 @@
size_t count, loff_t *pos){
unsigned long page = 0;
unsigned char *temp;
- ssize_t length = 0;
+ int length = 0;
int i = 0;
struct mpoa_client *mpc = mpcs;
in_cache_entry *in_entry;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site