summaryrefslogtreecommitdiffstats
path: root/net/irda/irias_object.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-10-10 23:49:17 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 00:37:24 +0200
commit86b95c12139785a0f4c17cb7b4cb865e7084cd34 (patch)
tree1ab601b463a5a5477e372045c4128b8b36668872 /net/irda/irias_object.c
parent[PATCH] ptrdiff_t is %t, not %z (diff)
downloadlinux-86b95c12139785a0f4c17cb7b4cb865e7084cd34.tar.xz
linux-86b95c12139785a0f4c17cb7b4cb865e7084cd34.zip
[PATCH] strndup() would better take size_t, not int
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/irda/irias_object.c')
-rw-r--r--net/irda/irias_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/irda/irias_object.c b/net/irda/irias_object.c
index a154b1d71c0f..56292ab7d652 100644
--- a/net/irda/irias_object.c
+++ b/net/irda/irias_object.c
@@ -43,7 +43,7 @@ struct ias_value irias_missing = { IAS_MISSING, 0, 0, 0, {0}};
*
* Faster, check boundary... Jean II
*/
-static char *strndup(char *str, int max)
+static char *strndup(char *str, size_t max)
{
char *new_str;
int len;