diff options
author | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-22 13:49:09 +0000 |
---|---|---|
committer | xazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-22 13:49:09 +0000 |
commit | 14c53cd601a6aba5811909ded3dae4992d707271 (patch) | |
tree | 63ed44e4ba7eab76e6fefb3a6b99b0812310361e /src/char/char.c | |
parent | 44d7606656a650dc43018b5c63bb56ad1f70e77c (diff) | |
download | hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.gz hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.bz2 hercules-14c53cd601a6aba5811909ded3dae4992d707271.tar.xz hercules-14c53cd601a6aba5811909ded3dae4992d707271.zip |
Minor cleanups, mostly reducing scopes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15504 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index cb3007ff9..338744828 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3992,9 +3992,8 @@ int mapif_sendallwos(int sfd, unsigned char *buf, unsigned int len) int mapif_send(int fd, unsigned char *buf, unsigned int len) { - int i; - if (fd >= 0) { + int i; ARR_FIND( 0, ARRAYLENGTH(server), i, fd == server[i].fd ); if( i < ARRAYLENGTH(server) ) { |