From de1da3116316c9da5d1437780d1349a09a725e97 Mon Sep 17 00:00:00 2001 From: yamt Date: Tue, 17 Oct 2006 09:19:57 +0000 Subject: [PATCH] re_diag: constify. --- sys/dev/ic/rtl8169.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/rtl8169.c b/sys/dev/ic/rtl8169.c index 133be7812170..34efeacd1ac3 100644 --- a/sys/dev/ic/rtl8169.c +++ b/sys/dev/ic/rtl8169.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtl8169.c,v 1.29 2006/10/13 11:06:15 yamt Exp $ */ +/* $NetBSD: rtl8169.c,v 1.30 2006/10/17 09:19:57 yamt Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -422,8 +422,8 @@ re_diag(struct rtk_softc *sc) u_int16_t status; u_int32_t rxstat; int total_len, i, s, error = 0; - u_int8_t dst[] = { 0x00, 'h', 'e', 'l', 'l', 'o' }; - u_int8_t src[] = { 0x00, 'w', 'o', 'r', 'l', 'd' }; + static const u_int8_t dst[] = { 0x00, 'h', 'e', 'l', 'l', 'o' }; + static const u_int8_t src[] = { 0x00, 'w', 'o', 'r', 'l', 'd' }; /* Allocate a single mbuf */