Made _gHaikuRevision static and renamed it to sHaikuRevision.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20093 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
// Haiku SVN revision. Will be set when copying libroot.so to the image.
|
// Haiku SVN revision. Will be set when copying libroot.so to the image.
|
||||||
// Lives in a separate section so that it can easily be found.
|
// Lives in a separate section so that it can easily be found.
|
||||||
extern uint32 _gHaikuRevision __attribute__((section("_haiku_revision")));
|
static uint32 sHaikuRevision __attribute__((section("_haiku_revision")));
|
||||||
uint32 _gHaikuRevision = 0;
|
static uint32 sHaikuRevision = 0;
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -34,9 +34,9 @@ uname(struct utsname *info)
|
|||||||
strlcpy(info->sysname, "Haiku", sizeof(info->sysname));
|
strlcpy(info->sysname, "Haiku", sizeof(info->sysname));
|
||||||
|
|
||||||
info->version[0] = '\0';
|
info->version[0] = '\0';
|
||||||
if (_gHaikuRevision) {
|
if (sHaikuRevision) {
|
||||||
snprintf(info->version, sizeof(info->version), "r%ld ",
|
snprintf(info->version, sizeof(info->version), "r%ld ",
|
||||||
_gHaikuRevision);
|
sHaikuRevision);
|
||||||
}
|
}
|
||||||
strlcat(info->version, systemInfo.kernel_build_date, sizeof(info->version));
|
strlcat(info->version, systemInfo.kernel_build_date, sizeof(info->version));
|
||||||
strlcat(info->version, " ", sizeof(info->version));
|
strlcat(info->version, " ", sizeof(info->version));
|
||||||
|
|||||||
Reference in New Issue
Block a user