mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Fix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static'
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7103 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
14d483eca0
commit
3f4cb3d37f
13 changed files with 35 additions and 31 deletions
|
@ -754,8 +754,8 @@ static CharDriverState *qemu_chr_open_stdio(void)
|
|||
|
||||
#ifdef __sun__
|
||||
/* Once Solaris has openpty(), this is going to be removed. */
|
||||
int openpty(int *amaster, int *aslave, char *name,
|
||||
struct termios *termp, struct winsize *winp)
|
||||
static int openpty(int *amaster, int *aslave, char *name,
|
||||
struct termios *termp, struct winsize *winp)
|
||||
{
|
||||
const char *slave;
|
||||
int mfd = -1, sfd = -1;
|
||||
|
@ -795,7 +795,7 @@ err:
|
|||
return -1;
|
||||
}
|
||||
|
||||
void cfmakeraw (struct termios *termios_p)
|
||||
static void cfmakeraw (struct termios *termios_p)
|
||||
{
|
||||
termios_p->c_iflag &=
|
||||
~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue