int x, y;
unsigned int x, y;
GetImagePixels16(image, width, height, pmap)    XImage *image;    unsigned int width;    unsigned int height;    PixelsMap *pmap;{    unsigned char *addr;    unsigned char *data;    unsigned int *iptr;    int x, y;    unsigned long lbt;    Pixel pixel;    int depth;    data = (unsigned char *) image->data;    iptr = pmap->pixelindex;    depth = image->depth;    lbt = low_bits_table[depth];    if (image->byte_order == MSBFirst)	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		addr = &data[ZINDEX16(x, y, image)];		pixel = addr[0] << 8 | addr[1];		if (depth != 16)		    pixel &= lbt;		if (storePixel(pixel, pmap, iptr))		    return (XpmNoMemory);	    }    else	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		addr = &data[ZINDEX16(x, y, image)];		pixel = addr[0] | addr[1] << 8;		if (depth != 16)		    pixel &= lbt;		if (storePixel(pixel, pmap, iptr))		    return (XpmNoMemory);	    }    return (XpmSuccess);}