summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-18 18:16:40 +0000
committerphk <phk@FreeBSD.org>2003-06-18 18:16:40 +0000
commit591f399cfea86c008e5908349bbd5137d370f450 (patch)
tree8874c626d5d6663ddb7c81a0cd34260b7bdf70b8 /sys/opencrypto
parent86115a7357f5c4577ad10abe5990a13d644c2cc4 (diff)
downloadFreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.zip
FreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.tar.gz
Initialize struct fileops with C99 sparse initialization.
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/cryptodev.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c
index e711125..7d544ab 100644
--- a/sys/opencrypto/cryptodev.c
+++ b/sys/opencrypto/cryptodev.c
@@ -93,13 +93,13 @@ static int cryptof_stat(struct file *, struct stat *,
static int cryptof_close(struct file *, struct thread *);
static struct fileops cryptofops = {
- cryptof_rw,
- cryptof_rw,
- cryptof_ioctl,
- cryptof_poll,
- cryptof_kqfilter,
- cryptof_stat,
- cryptof_close
+ .fo_read = cryptof_rw,
+ .fo_write = cryptof_rw,
+ .fo_ioctl = cryptof_ioctl,
+ .fo_poll = cryptof_poll,
+ .fo_kqfilter = cryptof_kqfilter,
+ .fo_stat = cryptof_stat,
+ .fo_close = cryptof_close
};
static struct csession *csefind(struct fcrypt *, u_int);
OpenPOWER on IntegriCloud