diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-31 04:07:33 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-31 04:07:33 +0000 |
commit | 86e6bb786f6f23201a2041901362e08b80681930 (patch) | |
tree | b1b6cae30938a9f5abde333a23818fb579177c46 /EdkUnixPkg/Sec | |
parent | f8d88c1ffc815c4ec89e3910b142ca5ad9376ac5 (diff) | |
download | edk2-platforms-86e6bb786f6f23201a2041901362e08b80681930.tar.xz |
remove unused PCD
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2337 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkUnixPkg/Sec')
-rw-r--r-- | EdkUnixPkg/Sec/SecMain.c | 8 | ||||
-rw-r--r-- | EdkUnixPkg/Sec/UgaX11.c | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/EdkUnixPkg/Sec/SecMain.c b/EdkUnixPkg/Sec/SecMain.c index b1394a2c02..72fad08e64 100644 --- a/EdkUnixPkg/Sec/SecMain.c +++ b/EdkUnixPkg/Sec/SecMain.c @@ -313,10 +313,10 @@ MapMemory ( INTN prot, INTN flags) { - STATIC UINTN base = 0x40000000; - CONST UINTN align = (1 << 24); - VOID *res; - BOOLEAN isAligned = 0; + STATIC UINTN base = 0x40000000; + CONST UINTN align = (1 << 24); + VOID *res = NULL; + BOOLEAN isAligned = 0; // // Try to get an aligned block somewhere in the address space of this diff --git a/EdkUnixPkg/Sec/UgaX11.c b/EdkUnixPkg/Sec/UgaX11.c index 5fbdeae1e2..b5719cfd59 100644 --- a/EdkUnixPkg/Sec/UgaX11.c +++ b/EdkUnixPkg/Sec/UgaX11.c @@ -113,8 +113,8 @@ TryCreateShmImage(UGA_IO_PRIVATE *drv) /* Can this fail ? */ shmctl (drv->xshm_info.shmid, IPC_RMID, NULL); - drv->xshm_info.shmaddr = drv->image_data; - drv->image->data = drv->image_data; + drv->xshm_info.shmaddr = (char*)drv->image_data; + drv->image->data = (char*)drv->image_data; if (!XShmAttach (drv->display, &drv->xshm_info)) { @@ -189,7 +189,7 @@ UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height) drv->image_data = malloc((drv->width * drv->height) << drv->pixel_shift); drv->image = XCreateImage (drv->display, drv->visual, drv->depth, - ZPixmap, 0, drv->image_data, + ZPixmap, 0, (char *)drv->image_data, drv->width, drv->height, 8 << drv->pixel_shift, 0); } @@ -328,6 +328,7 @@ UgaColorToPixel (UGA_IO_PRIVATE *drv, unsigned long val) { EFI_UGA_PIXEL res; + memset (&res, 0, sizeof (EFI_UGA_PIXEL)); /* FIXME: should round instead of truncate. */ res.Red = (val >> drv->r.shift) << drv->r.csize; res.Green = (val >> drv->g.shift) << drv->g.csize; |