diff options
author | phk <phk@FreeBSD.org> | 2003-06-18 18:16:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-18 18:16:40 +0000 |
commit | 591f399cfea86c008e5908349bbd5137d370f450 (patch) | |
tree | 8874c626d5d6663ddb7c81a0cd34260b7bdf70b8 /sys/opencrypto/cryptodev.c | |
parent | 86115a7357f5c4577ad10abe5990a13d644c2cc4 (diff) | |
download | FreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.zip FreeBSD-src-591f399cfea86c008e5908349bbd5137d370f450.tar.gz |
Initialize struct fileops with C99 sparse initialization.
Diffstat (limited to 'sys/opencrypto/cryptodev.c')
-rw-r--r-- | sys/opencrypto/cryptodev.c | 14 |
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); |