mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
fix compiler warnings
Origin commit data
------------------
Branch: master
Commit: cd387592d0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-09 (Thu, 09 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -313,7 +313,9 @@ void GLFramebuffer::run()
|
||||
ev.type = EV_KEY;
|
||||
gettimeofday(&ev.time, NULL);
|
||||
hal_debug_c("GLFB::%s: pushing 0x%x\n", __func__, ev.code);
|
||||
write(glfb_priv->input_fd, &ev, sizeof(ev));
|
||||
ssize_t w = write(glfb_priv->input_fd, &ev, sizeof(ev));
|
||||
if(w < 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -401,6 +403,7 @@ void GLFbPC::render()
|
||||
zoom = av_q2d(mVA) * av_q2d(a149) / av_q2d(mOA);
|
||||
break;
|
||||
}
|
||||
// fall through
|
||||
/* fallthrough for output format 14:9 */
|
||||
case DISPLAY_AR_MODE_PANSCAN:
|
||||
zoom = av_q2d(mOA) / av_q2d(mVA);
|
||||
|
@@ -36,8 +36,10 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_has_statusline = 0;
|
||||
strcpy(caps.boxvendor, "Generic");
|
||||
strcpy(caps.boxname, "PC");
|
||||
if (! uname(&u))
|
||||
if (! uname(&u)){
|
||||
strncpy(caps.boxarch, u.machine, sizeof(caps.boxarch));
|
||||
caps.boxarch[sizeof(caps.boxarch)-1] = '\0';
|
||||
}
|
||||
else
|
||||
fprintf(stderr, "%s: uname() failed: %m\n", __func__);
|
||||
|
||||
|
Reference in New Issue
Block a user