hdspconf: fix some string constant conversions

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Tim Blechmann 2011-03-27 13:34:19 +02:00 committed by Takashi Iwai
parent 8f446f99e5
commit e6c8241752
8 changed files with 43 additions and 43 deletions

View file

@ -21,7 +21,7 @@
#pragma implementation
#include "HC_BreakoutCable.h"
static void setXlrStatus(char *ctl_name, int val, int card_index)
static void setXlrStatus(const char *ctl_name, int val, int card_index)
{
int err;
char card_name[6];

View file

@ -21,7 +21,7 @@
#pragma implementation
#include "HC_CardPane.h"
extern char *card_names[5];
extern const char *card_names[5];
HC_CardPane::HC_CardPane(int alsa_idx, int idx, HDSP_IO_Type t):Fl_Group(PANE_X, PANE_Y, PANE_W, PANE_H)
{

View file

@ -21,7 +21,7 @@
#pragma implementation
#include "HC_ClockSource.h"
extern char *freqs[10];
extern const char *freqs[10];
void clock_source_cb(Fl_Widget *w, void *arg)
{

View file

@ -21,7 +21,7 @@
#pragma implementation
#include "HC_SpdifFreq.h"
extern char *freqs[10];
extern const char *freqs[10];
HC_SpdifFreq::HC_SpdifFreq(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "SPDIF Freq.")
{

View file

@ -21,7 +21,7 @@
#pragma implementation
#include "HC_SyncCheck.h"
extern char *lock_status[3];
extern const char *lock_status[3];
HC_SyncCheck::HC_SyncCheck(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "SyncCheck")
{

View file

@ -21,7 +21,7 @@
#pragma implementation
#include "HC_SystemClock.h"
extern char *freqs[10];
extern const char *freqs[10];
HC_SystemClock::HC_SystemClock(int x, int y, int w, int h):Fl_Widget(x, y, w, h, "System Clock")
{

View file

@ -20,7 +20,7 @@
#include "labels.h"
char *card_names[5] = {
const char *card_names[5] = {
"Digiface",
"Multiface",
"HDSP9652",
@ -28,7 +28,7 @@ char *card_names[5] = {
"Undefined",
};
char *freqs[10] = {
const char *freqs[10] = {
"32.0 kHz",
"44.1 kHz",
"48.0 kHz",
@ -41,7 +41,7 @@ char *freqs[10] = {
"192.0 kHz",
};
char *ref[7] = {
const char *ref[7] = {
"Word Clock",
"ADAT Sync",
"SPDIF",
@ -51,7 +51,7 @@ char *ref[7] = {
"ADAT3"
};
char *lock_status[3] = {
const char *lock_status[3] = {
"No Lock",
"Lock",
"Sync"

View file

@ -21,10 +21,10 @@
#ifndef LABELS_H
#define LABELS_H
extern char *card_names[5];
extern char *freqs[10];
extern char *ref[7];
extern char *lock_status[3];
extern const char *card_names[5];
extern const char *freqs[10];
extern const char *ref[7];
extern const char *lock_status[3];
#endif