Permalink
Browse files

Remove some Win32 warnings about constant prototypes.

  • Loading branch information...
1 parent 2c6b121 commit 3568485618d1fe4de08525d99b9bc0fd10f673fe @rcaputo rcaputo committed Dec 9, 2002
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/POE/Wheel/SocketFactory.pm
View
10 lib/POE/Wheel/SocketFactory.pm
@@ -45,11 +45,11 @@ BEGIN {
# Constants are evaluated first so they exist when the code uses
# them.
- eval( '*EADDRNOTAVAIL = sub () { 10049 };' .
- '*EINPROGRESS = sub () { 10036 };' .
- '*EWOULDBLOCK = sub () { 10035 };' .
- '*F_GETFL = sub () { 0 };' .
- '*F_SETFL = sub () { 0 };' .
+ eval( '*EADDRNOTAVAIL = sub { 10049 };' .
+ '*EINPROGRESS = sub { 10036 };' .
+ '*EWOULDBLOCK = sub { 10035 };' .
+ '*F_GETFL = sub { 0 };' .
+ '*F_SETFL = sub { 0 };' .
# Garrett Goebel's patch to support non-blocking connect()
# or MSWin32 follows. His notes on the matter:

0 comments on commit 3568485

Please sign in to comment.