Fixed several warnings.

Fixed some small issues, mostly NULL-ptr related.
This commit is contained in:
waltje
2018-10-20 02:38:37 -04:00
parent 4fb728541b
commit 4a445127d8
33 changed files with 747 additions and 783 deletions

View File

@@ -12,7 +12,7 @@
* "extern" reference to its device into the video.h file,
* and add an entry for it into the table here.
*
* Version: @(#)video_dev.c 1.0.23 2018/10/16
* Version: @(#)video_dev.c 1.0.24 2018/10/19
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -160,10 +160,10 @@ static const struct {
};
#if defined(_LOGGING) && defined(ENABLE_VIDEO_DEV_LOG)
void
video_card_log(int level, const char *fmt, ...)
{
#ifdef ENABLE_VIDEO_DEV_LOG
va_list ap;
if (video_card_do_log >= level) {
@@ -171,8 +171,8 @@ video_card_log(int level, const char *fmt, ...)
pclog_ex(fmt, ap);
va_end(ap);
}
#endif
}
#endif
void