Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hdaudio Replace numeric magic-number constant with s...



details:   https://anonhg.NetBSD.org/src/rev/cf1ed4e970e9
branches:  trunk
changeset: 348549:cf1ed4e970e9
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Oct 25 09:15:55 2016 +0000

description:
Replace numeric magic-number constant with something a bit more meaningful.

diffstat:

 sys/dev/hdaudio/hdafg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 975b1a194be8 -r cf1ed4e970e9 sys/dev/hdaudio/hdafg.c
--- a/sys/dev/hdaudio/hdafg.c   Tue Oct 25 05:43:40 2016 +0000
+++ b/sys/dev/hdaudio/hdafg.c   Tue Oct 25 09:15:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.9 2015/11/15 23:03:50 jmcneill Exp $ */
+/* $NetBSD: hdafg.c,v 1.10 2016/10/25 09:15:55 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.9 2015/11/15 23:03:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.10 2016/10/25 09:15:55 pgoyette Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -3663,7 +3663,7 @@
        struct hdafg_softc *sc = device_private(self);
        audio_params_t defparams;
        prop_dictionary_t args = opaque;
-       char vendor[16], product[16];
+       char vendor[MAX_AUDIO_DEV_LEN], product[MAX_AUDIO_DEV_LEN];
        uint64_t fgptr = 0;
        uint32_t astype = 0;
        uint8_t nid = 0;



Home | Main Index | Thread Index | Old Index