]> sigrok.org Git - libsigrok.git/commitdiff
Remove unneeded explicit array size specification.
authorUwe Hermann <redacted>
Fri, 20 Mar 2015 13:39:24 +0000 (14:39 +0100)
committerUwe Hermann <redacted>
Sat, 21 Mar 2015 18:40:19 +0000 (19:40 +0100)
src/hardware/beaglelogic/api.c
src/hardware/ikalogic-scanalogic2/api.c
src/hardware/link-mso19/api.c
src/hardware/openbench-logic-sniffer/api.c
src/hardware/openbench-logic-sniffer/protocol.h
src/hardware/pipistrello-ols/api.c
src/hardware/pipistrello-ols/protocol.h

index d10d071bff0b54eca7e1aa109742950b8be758ee..6bfb6df1080a2059db7936a813061ffb037834f0 100644 (file)
@@ -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,
 };
index 97a733a18e194d105838e9486a4fc4f18b52c04b..78b406ea60e3dba18aac3e5b77c361abc97d0178 100644 (file)
@@ -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,
 };
index 6ee01c8680689d7adec8e2d5eec666badc43174e..634d3f97859a962138a05faef7bb1bb17a104110 100644 (file)
@@ -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,
 };
index 9d1e060720e2465f4043b2ae7f47bc968865b545..ddced7f3b79ba4be189f079568f0183b0dbb91ab 100644 (file)
@@ -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",
index d95ddae2ed8d2394443e07e713662b881e0e1ef4..e75245d4b9d993b4c164a0e64948282f56132480 100644 (file)
@@ -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);
index e877234a21357470aefc45900223c7a090d7c57f..31fd9ac2568379fc1efbc67d09b509c621b030a2 100644 (file)
@@ -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",
index 869815a71f9f89d2bcd3a19b1bea35f755497a86..12a7e69f4b6e8f9469eb995642cc647c7ef740c0 100644 (file)
@@ -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);