diff options
author | bustico | 2008-03-25 16:13:07 +0000 |
---|---|---|
committer | bustico | 2008-03-25 16:13:07 +0000 |
commit | 6b7d6cb40d317bee3cc174f22547065d29e8c737 (patch) | |
tree | ee8c1921c0bb316a4c2d8a2515a6b960f545ee7c /src/ivy.c | |
parent | 006703ba94bd7b8c5f5bbab0eac88d573e73faa3 (diff) | |
download | ivy-c-6b7d6cb40d317bee3cc174f22547065d29e8c737.zip ivy-c-6b7d6cb40d317bee3cc174f22547065d29e8c737.tar.gz ivy-c-6b7d6cb40d317bee3cc174f22547065d29e8c737.tar.bz2 ivy-c-6b7d6cb40d317bee3cc174f22547065d29e8c737.tar.xz |
ajout makefile pour osx
Diffstat (limited to 'src/ivy.c')
-rw-r--r-- | src/ivy.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -16,9 +16,7 @@ */ /* - TODO : ° compil sur mac - ° faire un repertoire exemple avec tous les executables - ° commit svn (penser aux fichiers nouveaux, et deplacés) + TODO : ° sync svn ° compil sur windows ° faire un configure ° mettre à jour la doc / site web @@ -875,7 +873,7 @@ void IvyStart (const char* bus) { struct in_addr baddr; - unsigned long mask = 0xffffffff; + unsigned int mask = 0xffffffff; unsigned char elem = 0; int numdigit = 0; int numelem = 0; @@ -948,12 +946,15 @@ void IvyStart (const char* bus) } else { baddr.s_addr = htonl(mask); - printf ("Broadcasting on network %s, port %d\n", inet_ntoa(baddr), SupervisionPort); + printf ("Broadcasting on network %s, port %d\n", + inet_ntoa(baddr), SupervisionPort); /* test mask value agaisnt CLASS D */ if ( IN_MULTICAST( mask ) ) SocketAddMember (broadcast , mask ); - SocketSendBroadcast (broadcast, mask, SupervisionPort, "%d %hu %s %s\n", IVYMAJOR_VERSION, ApplicationPort, ApplicationID, ApplicationName); + SocketSendBroadcast (broadcast, mask, SupervisionPort, + "%d %hu %s %s\n", IVYMAJOR_VERSION, ApplicationPort, + ApplicationID, ApplicationName); numelem = 0; mask = 0xffffffff; } |