2021-06-02 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compile warnings in ripcd(8).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-02 15:21:57 -04:00
parent 5b07961763
commit 803c17ca36
14 changed files with 36 additions and 18 deletions

View File

@@ -25,6 +25,7 @@
#include <syslog.h>
#include <rdapplication.h>
#include <rdconf.h>
#include "am16.h"
#include "globals.h"
@@ -137,7 +138,7 @@ void Am16::processCommand(RDMacro *cmd)
data[6]=0x07; // Request Program NN
data[7]=AM16_PATCH_NUMBER;
data[8]=AM16_SYSEX_END;
write(bt_midi_socket,data,9);
RDCheckReturnCode("process command ST",write(bt_midi_socket,data,9),9);
bt_timeout_timer->start(AM16_TIMEOUT_INTERVAL);
}
cmd->acknowledge(true);
@@ -214,18 +215,22 @@ void Am16::ProcessMessage(char *msg,int len)
//
// Send to Programs
//
write(bt_midi_socket,msg,len);
RDCheckReturnCode("ProcessMessage() write",
write(bt_midi_socket,msg,len),len);
msg[7]++;
write(bt_midi_socket,msg,len);
RDCheckReturnCode("ProcessMessage() write",
write(bt_midi_socket,msg,len),len);
//
// Toggle Active Programs
//
msg[0]=0xC1; // Channel 1
msg[1]=AM16_PATCH_NUMBER+1;
write(bt_midi_socket,msg,2);
RDCheckReturnCode("ProcessMessage() write",
write(bt_midi_socket,msg,2),2);
msg[1]=AM16_PATCH_NUMBER;
write(bt_midi_socket,msg,2);
RDCheckReturnCode("ProcessMessage() write",
write(bt_midi_socket,msg,2),2);
}
break;

View File

@@ -2,7 +2,7 @@
//
// A Rivendell switcher driver for the BroadcastTools 8x2
//
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -88,7 +88,7 @@ bool Bt8x2::secondaryTtyActive()
void Bt8x2::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::ST:

View File

@@ -113,7 +113,7 @@ bool BtAcs82::secondaryTtyActive()
void BtAcs82::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
int lvl=0;
switch(cmd->command()) {

View File

@@ -107,7 +107,7 @@ bool BtSrc8Iii::secondaryTtyActive()
void BtSrc8Iii::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::GO:

View File

@@ -2,7 +2,7 @@
//
// A Rivendell switcher driver for the BroadcastTools SS 12.4
//
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -91,7 +91,7 @@ bool BtSs124::secondaryTtyActive()
void BtSs124::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::SA:

View File

@@ -109,7 +109,7 @@ BtSs164::~BtSs164()
void BtSs164::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::GO:

View File

@@ -109,7 +109,7 @@ bool BtSs42::secondaryTtyActive()
void BtSs42::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::GO:

View File

@@ -109,7 +109,7 @@ bool BtSs44::secondaryTtyActive()
void BtSs44::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::GO:

View File

@@ -109,7 +109,7 @@ bool BtSs82::secondaryTtyActive()
void BtSs82::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
switch(cmd->command()) {
case RDMacro::GO:

View File

@@ -2,7 +2,7 @@
//
// A Rivendell switcher driver for the Ross NK switchers via the SCP/A
//
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -90,7 +90,7 @@ bool RossNkScp::secondaryTtyActive()
void RossNkScp::processCommand(RDMacro *cmd)
{
char str[11];
char str[256];
switch(cmd->command()) {
case RDMacro::ST:

View File

@@ -92,7 +92,7 @@ bool Sas32000::secondaryTtyActive()
void Sas32000::processCommand(RDMacro *cmd)
{
char str[9];
char str[256];
char sign='1';
switch(cmd->command()) {