summaryrefslogtreecommitdiffstats
path: root/sbin/atm
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-08-05 07:33:50 +0000
committerstefanf <stefanf@FreeBSD.org>2005-08-05 07:33:50 +0000
commit379fd9ce57d7a5c44dc16ce8c3c8af02979e7021 (patch)
tree9e4c30d1babc52168cdce1010fe837ebbdda2f39 /sbin/atm
parent6fa7754a0a4f07871b05cee7e87e0f4aee607c07 (diff)
downloadFreeBSD-src-379fd9ce57d7a5c44dc16ce8c3c8af02979e7021.zip
FreeBSD-src-379fd9ce57d7a5c44dc16ce8c3c8af02979e7021.tar.gz
Use the C99 syntax for designated initialisers.
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/atmconfig/diag.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/atm/atmconfig/diag.c b/sbin/atm/atmconfig/diag.c
index 74d3901..547d364 100644
--- a/sbin/atm/atmconfig/diag.c
+++ b/sbin/atm/atmconfig/diag.c
@@ -889,16 +889,16 @@ print_channel(const struct diagif *aif)
const struct atmio_vcc *v;
static const char *const aal_tab[] = {
- [ATMIO_AAL_0] "0",
- [ATMIO_AAL_34] "3/4",
- [ATMIO_AAL_5] "5",
- [ATMIO_AAL_RAW] "raw",
+ [ATMIO_AAL_0] = "0",
+ [ATMIO_AAL_34] = "3/4",
+ [ATMIO_AAL_5] = "5",
+ [ATMIO_AAL_RAW] = "raw",
};
static const char *const traffic_tab[] = {
- [ATMIO_TRAFFIC_UBR] "ubr",
- [ATMIO_TRAFFIC_CBR] "cbr",
- [ATMIO_TRAFFIC_ABR] "abr",
- [ATMIO_TRAFFIC_VBR] "vbr",
+ [ATMIO_TRAFFIC_UBR] = "ubr",
+ [ATMIO_TRAFFIC_CBR] = "cbr",
+ [ATMIO_TRAFFIC_ABR] = "abr",
+ [ATMIO_TRAFFIC_VBR] = "vbr",
};
for (v = aif->vtab->vccs; v < &aif->vtab->vccs[aif->vtab->count]; v++) {
OpenPOWER on IntegriCloud