summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-18 11:45:32 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-18 11:45:32 +0800
commitddffb6f6493be88677a43407aa175d3abc4b3d3c (patch)
tree64e34b92f62000bc551f86440b444caf5b8e1662 /mbbsd
parenta4ca9945a1f90b2c65d73ecc454d98028a4ea0d7 (diff)
downloadpttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar
pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.gz
pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.bz2
pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.lz
pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.xz
pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.tar.zst
pttbbs-ddffb6f6493be88677a43407aa175d3abc4b3d3c.zip
make emacs happy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3372 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index b4a150f4..589554aa 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1654,13 +1654,15 @@ daemon_login(int argc, char *argv[], char *envp[])
/* main loop */
while( 1 ){
len_of_sock_addr = sizeof(xsin);
+ if(
#if defined(Solaris) && __OS_MAJOR_VERSION__ == 5 && __OS_MINOR_VERSION__ < 7
- if( (csock = accept(msock, (struct sockaddr *)&xsin,
- &len_of_sock_addr)) < 0 ){
+ (csock = accept(msock, (struct sockaddr *)&xsin,
+ &len_of_sock_addr)) < 0
#else
- if( (csock = accept(msock, (struct sockaddr *)&xsin,
- (socklen_t *)&len_of_sock_addr)) < 0 ){
+ (csock = accept(msock, (struct sockaddr *)&xsin,
+ (socklen_t *)&len_of_sock_addr)) < 0
#endif
+ ) {
if (errno != EINTR)
sleep(1);
continue;