projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sim: fix func call style (space before paren)
[deliverable/binutils-gdb.git]
/
sim
/
common
/
dv-sockser.c
diff --git
a/sim/common/dv-sockser.c
b/sim/common/dv-sockser.c
index f6fd3898ab6b5de1ea63892c7e15f22e669b45bb..ae65585460aaff6c2fe5eccff0dd6a93feb6eeb8 100644
(file)
--- a/
sim/common/dv-sockser.c
+++ b/
sim/common/dv-sockser.c
@@
-1,5
+1,6
@@
/* Serial port emulation using sockets.
/* Serial port emulation using sockets.
- Copyright (C) 1998, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
This program is free software; you can redistribute it and/or modify
Contributed by Cygnus Solutions.
This program is free software; you can redistribute it and/or modify
@@
-174,12
+175,12
@@
dv_sockser_init (SIM_DESC sd)
}
sockaddr.sin_family = PF_INET;
}
sockaddr.sin_family = PF_INET;
- sockaddr.sin_port = htons(port);
+ sockaddr.sin_port = htons
(port);
memcpy (&sockaddr.sin_addr.s_addr, hostent->h_addr,
sizeof (struct in_addr));
tmp = 1;
memcpy (&sockaddr.sin_addr.s_addr, hostent->h_addr,
sizeof (struct in_addr));
tmp = 1;
- if (setsockopt (sockser_listen_fd, SOL_SOCKET, SO_REUSEADDR, (void*)& tmp, sizeof(tmp)) < 0)
+ if (setsockopt (sockser_listen_fd, SOL_SOCKET, SO_REUSEADDR, (void*)& tmp, sizeof
(tmp)) < 0)
{
sim_io_eprintf (sd, "sockser init: unable to set SO_REUSEADDR: %s\n",
strerror (errno));
{
sim_io_eprintf (sd, "sockser init: unable to set SO_REUSEADDR: %s\n",
strerror (errno));
This page took
0.023425 seconds
and
4
git commands to generate.