The `struct` keyword in `struct udev *udev = ...;` is not necessary in C++, and you should align the pointer asterisk to the type to be consistent with Laurent's style, i.e. `udev* udevContext = udev_new();`. Same for `struct udev_device *dev = ...;` a few lines below.