v4l: Prefer C99 standard type over asm __u32. Re #291

merge-requests/425/head
Olaf Meeuwissen 2020-05-05 16:14:11 +09:00
rodzic 9e1acea497
commit 95b4369166
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -72,7 +72,6 @@
#include "../include/sane/saneopts.h"
#include <sys/ioctl.h>
#include <asm/types.h> /* XXX glibc */
#define BACKEND_NAME v4l
#include "../include/sane/sanei_backend.h"
@ -1046,7 +1045,7 @@ sane_start (SANE_Handle handle)
/* v4l1 actually returns BGR when we ask for RGB, so convert it */
if (s->pict.palette == VIDEO_PALETTE_RGB24)
{
__u32 loop;
uint32_t loop;
DBG (3, "sane_start: converting from BGR to RGB\n");
for (loop = 0; loop < (s->window.width * s->window.height * 3); loop += 3)
{