<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8787">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_vpb: Avoid GNU old-style field designator extension.<br><br>clang 6.0 warned about this. Beside that, this change removes the used variable<br>'desc'.<br><br>ASTERISK-27808<br><br>Change-Id: Ia26bdcc0a562c058151814511cfcf70ecafa595b<br>---<br>M channels/chan_vpb.cc<br>1 file changed, 62 insertions(+), 63 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/87/8787/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc<br>index 1736cc6..45fc125 100644<br>--- a/channels/chan_vpb.cc<br>+++ b/channels/chan_vpb.cc<br>@@ -108,7 +108,6 @@<br> #endif<br> /**/<br> <br>-static const char desc[] = "VoiceTronix V6PCI/V12PCI/V4PCI API Support";<br> static const char tdesc[] = "Standard VoiceTronix API Driver";<br> static const char config[] = "vpb.conf";<br> <br>@@ -360,71 +359,71 @@<br> static int vpb_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);<br> <br> static struct ast_channel_tech vpb_tech = {<br>- type: "vpb",<br>- description: tdesc,<br>- capabilities: NULL,<br>- properties: 0,<br>- requester: vpb_request,<br>- requester_with_stream_topology: NULL,<br>- devicestate: NULL,<br>- presencestate: NULL,<br>- send_digit_begin: vpb_digit_begin,<br>- send_digit_end: vpb_digit_end,<br>- call: vpb_call,<br>- hangup: vpb_hangup,<br>- answer: vpb_answer,<br>- read: vpb_read,<br>- read_stream: NULL,<br>- write: vpb_write,<br>- write_stream: NULL,<br>- send_text: NULL,<br>- send_image: NULL,<br>- send_html: NULL,<br>- exception: NULL,<br>- early_bridge: NULL,<br>- indicate: vpb_indicate,<br>- fixup: vpb_fixup,<br>- setoption: NULL,<br>- queryoption: NULL,<br>- transfer: NULL,<br>- write_video: NULL,<br>- write_text: NULL,<br>- func_channel_read: NULL,<br>- func_channel_write: NULL,<br>+ .type = "vpb",<br>+ .description = tdesc,<br>+ .capabilities = NULL,<br>+ .properties = 0,<br>+ .requester = vpb_request,<br>+ .requester_with_stream_topology = NULL,<br>+ .devicestate = NULL,<br>+ .precensestate = NULL,<br>+ .send_digit_begin = vpb_digit_begin,<br>+ .send_digit_end = vpb_digit_end,<br>+ .call = vpb_call,<br>+ .hangup = vpb_hangup,<br>+ .answer = vpb_answer,<br>+ .read = vpb_read,<br>+ .read_stream = NULL,<br>+ .write = vpb_write,<br>+ .write_stream = NULL,<br>+ .send_text = NULL,<br>+ .send_image = NULL,<br>+ .send_html = NULL,<br>+ .exception = NULL,<br>+ .early_bridge = NULL,<br>+ .indicate = vpb_indicate,<br>+ .fixup = vpb_fixup,<br>+ .setoption = NULL,<br>+ .queryoption = NULL,<br>+ .transfer = NULL,<br>+ .write_video = NULL,<br>+ .write_text = NULL,<br>+ .func_channel_read = NULL,<br>+ .func_channel_write = NULL,<br> };<br> <br> static struct ast_channel_tech vpb_tech_indicate = {<br>- type: "vpb",<br>- description: tdesc,<br>- capabilities: NULL,<br>- properties: 0,<br>- requester: vpb_request,<br>- requester_with_stream_topology: NULL,<br>- devicestate: NULL,<br>- presencestate: NULL,<br>- send_digit_begin: vpb_digit_begin,<br>- send_digit_end: vpb_digit_end,<br>- call: vpb_call,<br>- hangup: vpb_hangup,<br>- answer: vpb_answer,<br>- read: vpb_read,<br>- read_stream: NULL,<br>- write: vpb_write,<br>- write_stream: NULL,<br>- send_text: NULL,<br>- send_image: NULL,<br>- send_html: NULL,<br>- exception: NULL,<br>- early_bridge: NULL,<br>- indicate: NULL,<br>- fixup: vpb_fixup,<br>- setoption: NULL,<br>- queryoption: NULL,<br>- transfer: NULL,<br>- write_video: NULL,<br>- write_text: NULL,<br>- func_channel_read: NULL,<br>- func_channel_write: NULL,<br>+ .type = "vpb",<br>+ .description = tdesc,<br>+ .capabilities = NULL,<br>+ .properties = 0,<br>+ .requester = vpb_request,<br>+ .requester_with_stream_topology = NULL,<br>+ .devicestate = NULL,<br>+ .presencestate = NULL,<br>+ .send_digit_begin = vpb_digit_begin,<br>+ .send_digit_end = vpb_digit_end,<br>+ .call = vpb_call,<br>+ .hangup = vpb_hangup,<br>+ .answer = vpb_answer,<br>+ .read = vpb_read,<br>+ .read_stream = NULL,<br>+ .write = vpb_write,<br>+ .write_stream = NULL,<br>+ .send_text = NULL,<br>+ .send_image = NULL,<br>+ .send_html = NULL,<br>+ .exception = NULL,<br>+ .early_bridge = NULL,<br>+ .indicate = NULL,<br>+ .fixup = vpb_fixup,<br>+ .setoption = NULL,<br>+ .queryoption = NULL,<br>+ .transfer = NULL,<br>+ .write_video = NULL,<br>+ .write_text = NULL,<br>+ .func_channel_read = NULL,<br>+ .func_channel_write = NULL,<br> };<br> <br> #if defined(VPB_NATIVE_BRIDGING)<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8787">change 8787</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8787"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia26bdcc0a562c058151814511cfcf70ecafa595b </div>
<div style="display:none"> Gerrit-Change-Number: 8787 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>