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:
parent
f83348ef31
commit
2cddddacba
@ -14,8 +14,8 @@
|
||||
|
||||
// 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.
|
||||
extern uint32 _gHaikuRevision __attribute__((section("_haiku_revision")));
|
||||
uint32 _gHaikuRevision = 0;
|
||||
static uint32 sHaikuRevision __attribute__((section("_haiku_revision")));
|
||||
static uint32 sHaikuRevision = 0;
|
||||
|
||||
|
||||
int
|
||||
@ -34,9 +34,9 @@ uname(struct utsname *info)
|
||||
strlcpy(info->sysname, "Haiku", sizeof(info->sysname));
|
||||
|
||||
info->version[0] = '\0';
|
||||
if (_gHaikuRevision) {
|
||||
if (sHaikuRevision) {
|
||||
snprintf(info->version, sizeof(info->version), "r%ld ",
|
||||
_gHaikuRevision);
|
||||
sHaikuRevision);
|
||||
}
|
||||
strlcat(info->version, systemInfo.kernel_build_date, sizeof(info->version));
|
||||
strlcat(info->version, " ", sizeof(info->version));
|
||||
|
Loading…
Reference in New Issue
Block a user