Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Use a static co...
details: https://anonhg.NetBSD.org/src/rev/a4bcab34d735
branches: riastradh-drm2
changeset: 788439:a4bcab34d735
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:48:11 2013 +0000
description:
Use a static const, not `= {0}', to zero-initialize in intel_sdvo.c.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 5eab5fa0aaa8 -r a4bcab34d735 sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c Wed Jul 24 03:47:55 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_sdvo.c Wed Jul 24 03:48:11 2013 +0000
@@ -621,7 +621,12 @@
static bool intel_sdvo_set_target_input(struct intel_sdvo *intel_sdvo)
{
+#ifdef __NetBSD__
+ static const struct intel_sdvo_set_target_input_args zero_targets;
+ struct intel_sdvo_set_target_input_args targets = zero_targets;
+#else
struct intel_sdvo_set_target_input_args targets = {0};
+#endif
return intel_sdvo_set_value(intel_sdvo,
SDVO_CMD_SET_TARGET_INPUT,
&targets, sizeof(targets));
Home |
Main Index |
Thread Index |
Old Index