~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to hw/xfree86/os-support/solaris/sun_init.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    int fd;
72
72
    struct vt_mode VT;
73
73
    struct vt_stat vtinfo;
74
 
    int FreeVTslot;
75
74
    MessageType from = X_PROBED;
76
75
#endif
77
76
 
95
94
            }
96
95
            else
97
96
            {
98
 
                if ((int)mmap(0, 0x1000, PROT_NONE,
99
 
                              MAP_FIXED | MAP_SHARED, fd, 0) == -1)
 
97
                if (mmap(0, 0x1000, PROT_NONE,
 
98
                         MAP_FIXED | MAP_SHARED, fd, 0) == MAP_FAILED)
100
99
                    xf86Msg(X_WARNING,
101
100
                        "xf86OpenConsole: failed to protect page 0 (%s)\n",
102
101
                        strerror(errno));
413
412
    return 0;
414
413
}
415
414
 
416
 
void xf86UseMsg()
 
415
void xf86UseMsg(void)
417
416
{
418
417
#ifdef HAS_USL_VTS
419
418
    ErrorF("vtX                    Use the specified VT number\n");