From: Tim Cambrant Date: Mon, 15 Mar 2004 05:38:16 +0000 (-0800) Subject: [VLAN]: Use array for static const char 'fmt' X-Git-Tag: v2.6.5-rc1~11^2^2~3 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=ae26e2efcd563ecdd45d39466ef7cb277b3382fb;p=history.git [VLAN]: Use array for static const char 'fmt' --- diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index a4487c0539c4..9ea8d1d99d32 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c @@ -305,7 +305,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset) struct net_device *vlandev = (struct net_device *) seq->private; const struct vlan_dev_info *dev_info = VLAN_DEV_INFO(vlandev); struct net_device_stats *stats; - static const char *fmt = "%30s %12lu\n"; + static const char fmt[] = "%30s %12lu\n"; int i; if ((vlandev == NULL) || (!(vlandev->priv_flags & IFF_802_1Q_VLAN)))