Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2005-02-10 03:20:37 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-02-10 03:20:37 -0800
commit5203bf04a147dd7e69cd89b16b43a630e748b2ab (patch)
tree94a0ad9fc705ac41b12b4cfd54f17b4f7f1186d4
parentbf520a21dd3cceb336cf585a70365fe7f8cfb229 (diff)
[NET]: Use TASK_COMM_LEN instead of magic constant.
Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 30870f938c04..8d77617f0fcb 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -166,7 +166,7 @@ static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen)
static void sock_warn_obsolete_bsdism(const char *name)
{
static int warned;
- static char warncomm[16];
+ static char warncomm[TASK_COMM_LEN];
if (strcmp(warncomm, current->comm) && warned < 5) {
strcpy(warncomm, current->comm);
printk(KERN_WARNING "process `%s' is using obsolete "