libvirt/src/uml
Daniel P. Berrange 7e6aabc61f Copy struct inotify_event entries to avoid alignment problems
When reading the inotify FD, we get back a sequence of
struct inotify_event, each with variable length data following.
It is not safe to simply cast from the char *buf to the
struct inotify_event struct since this may violate data
alignment rules. Thus we must copy from the char *buf
into the struct inotify_event instance before accessing
the data.

uml/uml_driver.c: In function 'umlInotifyEvent':
uml/uml_driver.c:327:13: warning: cast increases required alignment of target type [-Wcast-align]
         e = (struct inotify_event *)tmp;

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-04-08 10:03:21 +01:00
..
uml_conf.c virCaps: get rid of defaultConsoleTargetType callback 2013-04-04 22:42:39 +02:00
uml_conf.h maint: Rename xmlconf to xmlopt and virDomainXMLConfig to virDomainXMLOption 2013-04-04 22:18:56 +02:00
uml_driver.c Copy struct inotify_event entries to avoid alignment problems 2013-04-08 10:03:21 +01:00
uml_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00