mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-31 22:25:34 -04:00
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:
parent
8f446f99e5
commit
e6c8241752
8 changed files with 43 additions and 43 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue