VirtualBox

Changeset 95092 in vbox


Ignore:
Timestamp:
May 25, 2022 11:21:23 AM (3 years ago)
Author:
vboxsync
Message:

VBoxGuest-netbsd.c: Adapt to cdevsw changes. bugref:8547

cdevsw::d_cancel was introduced riding the 9.99.95 bump. Unlike other
methods the caller does check it for NULL, so we can avoid #ifdefs by
just switching to designed initializers (which is a good thing to do
anyway).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-netbsd.c

    r95090 r95092  
    171171static struct cdevsw g_VBoxGuestNetBSDChrDevSW =
    172172{
    173     VBoxGuestNetBSDOpen,
    174     noclose,
    175     noread,
    176     nowrite,
    177     noioctl,
    178     nostop,
    179     notty,
    180     nopoll,
    181     nommap,
    182     nokqfilter,
     173    .d_open = VBoxGuestNetBSDOpen,
     174    .d_close = noclose,
     175    .d_read = noread,
     176    .d_write = nowrite,
     177    .d_ioctl = noioctl,
     178    .d_stop = nostop,
     179    .d_tty = notty,
     180    .d_poll = nopoll,
     181    .d_mmap = nommap,
     182    .d_kqfilter = nokqfilter,
    183183};
    184184
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette