You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing:
| loop.c:20:14: error: too few arguments to function 'ioctl'
| int devnr = ioctl(fd, LOOP_CTL_GET_FREE);
| ^
| In file included from loop.c:6:0:
| /oe/oe-core/build/tmp-glibc/sysroots/poodle/usr/lib/klibc/include/unistd.h:111:14: note: declared here
| __extern int ioctl(int, int, void *);
| ^
| loop.c: In function 'losetup':
| loop.c:48:12: warning: passing argument 3 of 'ioctl' makes pointer from integer without a cast
| int res = ioctl(loopfd, LOOP_SET_FD, filefd);
| ^
| In file included from loop.c:6:0:
| /oe/oe-core/build/tmp-glibc/sysroots/poodle/usr/lib/klibc/include/unistd.h:111:14: note: expected 'void *' but argument is of type 'int'
| __extern int ioctl(int, int, void *);
| ^
| make: *** [loop.o] Error 1
Signed-off-by: Andrea Adami <[email protected]>
Maarten ter Huurne <[email protected]>:
Add comment in code that we pass 3rd arg for klibc.
Add intptr_t typecast to suppress warning on systems where
sizeof(int) < sizeof(void *).
0 commit comments