Remove unneeded explicit array size specification.
This commit is contained in:
parent
1beccaed46
commit
53cda65a6b
|
@ -48,7 +48,7 @@ static const int32_t soft_trigger_matches[] = {
|
|||
};
|
||||
|
||||
/* Channels are numbered 0-13 */
|
||||
SR_PRIV const char *beaglelogic_channel_names[NUM_CHANNELS + 1] = {
|
||||
SR_PRIV const char *beaglelogic_channel_names[] = {
|
||||
"P8_45", "P8_46", "P8_43", "P8_44", "P8_41", "P8_42", "P8_39", "P8_40",
|
||||
"P8_27", "P8_29", "P8_28", "P8_30", "P8_21", "P8_20", NULL,
|
||||
};
|
||||
|
|
|
@ -47,7 +47,7 @@ SR_PRIV const uint64_t sl2_samplerates[NUM_SAMPLERATES] = {
|
|||
SR_MHZ(20),
|
||||
};
|
||||
|
||||
static const char *channel_names[NUM_CHANNELS + 1] = {
|
||||
static const char *channel_names[] = {
|
||||
"0", "1", "2", "3",
|
||||
NULL,
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ static const uint32_t devopts[] = {
|
|||
*
|
||||
* See also: http://www.linkinstruments.com/images/mso19_1113.gif
|
||||
*/
|
||||
SR_PRIV const char *mso19_channel_names[NUM_CHANNELS + 1] = {
|
||||
SR_PRIV const char *mso19_channel_names[] = {
|
||||
/* Note: DSO needs to be first. */
|
||||
"DSO", "0", "1", "2", "3", "4", "5", "6", "7", NULL,
|
||||
};
|
||||
|
|
|
@ -70,7 +70,7 @@ static const char *patterns[] = {
|
|||
};
|
||||
|
||||
/* Channels are numbered 0-31 (on the PCB silkscreen). */
|
||||
SR_PRIV const char *ols_channel_names[NUM_CHANNELS + 1] = {
|
||||
SR_PRIV const char *ols_channel_names[] = {
|
||||
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
|
||||
"13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23",
|
||||
"24", "25", "26", "27", "28", "29", "30", "31",
|
||||
|
|
|
@ -101,7 +101,7 @@ struct dev_context {
|
|||
unsigned char *raw_sample_buf;
|
||||
};
|
||||
|
||||
SR_PRIV extern const char *ols_channel_names[NUM_CHANNELS + 1];
|
||||
SR_PRIV extern const char *ols_channel_names[];
|
||||
|
||||
SR_PRIV int send_shortcommand(struct sr_serial_dev_inst *serial,
|
||||
uint8_t command);
|
||||
|
|
|
@ -61,7 +61,7 @@ static const char *patterns[] = {
|
|||
};
|
||||
|
||||
/* Channels are numbered 0-31 (on the PCB silkscreen). */
|
||||
SR_PRIV const char *p_ols_channel_names[NUM_CHANNELS + 1] = {
|
||||
SR_PRIV const char *p_ols_channel_names[] = {
|
||||
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
|
||||
"13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23",
|
||||
"24", "25", "26", "27", "28", "29", "30", "31",
|
||||
|
|
|
@ -117,7 +117,7 @@ struct dev_context {
|
|||
unsigned char *raw_sample_buf;
|
||||
};
|
||||
|
||||
SR_PRIV extern const char *p_ols_channel_names[NUM_CHANNELS + 1];
|
||||
SR_PRIV extern const char *p_ols_channel_names[];
|
||||
SR_PRIV int write_shortcommand(struct dev_context *devc, uint8_t command);
|
||||
SR_PRIV int write_longcommand(struct dev_context *devc, uint8_t command, uint8_t *data);
|
||||
SR_PRIV int p_ols_open(struct dev_context *devc);
|
||||
|
|
Loading…
Reference in New Issue