Bug 758483 "struct utsname" should be used to declare unameobj r=bjacob
authorGinn Chen <ginn.chen@oracle.com>
Mon, 28 May 2012 09:29:35 +0800
changeset 99144 fe69d3aa1cc55b27495f54cc51cc3d77f7fda1d9
parent 99143 0729364c8b30f3c92bf1befaeab6c63de0855b83
child 99145 66627acb8fc62f9c67072d96a21ff3b487375044
push idunknown
push userunknown
push dateunknown
reviewersbjacob
bugs758483
milestone15.0a1
Bug 758483 "struct utsname" should be used to declare unameobj r=bjacob
widget/xpwidgets/GfxInfoX11.cpp
--- a/widget/xpwidgets/GfxInfoX11.cpp
+++ b/widget/xpwidgets/GfxInfoX11.cpp
@@ -126,17 +126,17 @@ GfxInfo::GetData()
         }
     }
 
     if (!strcmp(textureFromPixmap.get(), "TRUE"))
         mHasTextureFromPixmap = true;
 
     // only useful for Linux kernel version check for FGLRX driver.
     // assumes X client == X server, which is sad.
-    utsname unameobj;
+    struct utsname unameobj;
     if (!uname(&unameobj))
     {
       mOS.Assign(unameobj.sysname);
       mOSRelease.Assign(unameobj.release);
     }
 
     const char *spoofedVendor = PR_GetEnv("MOZ_GFX_SPOOF_GL_VENDOR");
     if (spoofedVendor)