mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-31 21:51:54 +00:00
Cleanup code of rgbfix, rgbgfx and external libs
Follow Linux kernel coding style. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
4
src/extern/version.c
vendored
4
src/extern/version.c
vendored
@@ -19,14 +19,14 @@
|
||||
|
||||
#include "extern/version.h"
|
||||
|
||||
const char * get_package_version_string(void)
|
||||
const char *get_package_version_string(void)
|
||||
{
|
||||
static char s[50];
|
||||
|
||||
/* The following conditional should be simplified by the compiler. */
|
||||
if (strlen(BUILD_VERSION_STRING) == 0) {
|
||||
snprintf(s, sizeof(s), "v%d.%d.%d", PACKAGE_VERSION_MAJOR,
|
||||
PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCH);
|
||||
PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCH);
|
||||
return s;
|
||||
} else {
|
||||
return BUILD_VERSION_STRING;
|
||||
|
||||
Reference in New Issue
Block a user