From 72784f6c8f9341f676d380170805e3cf5ae79bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 2 Sep 2005 21:26:51 +0000 Subject: [PATCH] Remove warnings svn path=/trunk/; revision=17610 --- rosapps/net/netreg/netreg.cpp | 6 ++---- rosapps/net/netreg/netreg.xml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rosapps/net/netreg/netreg.cpp b/rosapps/net/netreg/netreg.cpp index 06cd9ecc7aa..4886d4e229f 100644 --- a/rosapps/net/netreg/netreg.cpp +++ b/rosapps/net/netreg/netreg.cpp @@ -403,8 +403,8 @@ private: string full_input; string remaining_output; - RHState state; SOCKET socket; + RHState state; }; SOCKET make_listening_socket( int port ) { @@ -440,7 +440,7 @@ int main( int argc, char **argv ) { SOCKET listen_socket; int i; int port_to_listen = 80; - int active_fds = 0; + unsigned int active_fds = 0; for( i = 1; i < argc; i++ ) { if( string( "-p" ) == argv[i] ) { @@ -480,8 +480,6 @@ int main( int argc, char **argv ) { FD_SET(listen_socket,&pollin); - struct timeval tv; - active_fds = select( active_fds, &pollin, &pollout, &pollerr, NULL ); if( active_fds > 0 ) { diff --git a/rosapps/net/netreg/netreg.xml b/rosapps/net/netreg/netreg.xml index 41501afaff2..b2ee9fb29ab 100644 --- a/rosapps/net/netreg/netreg.xml +++ b/rosapps/net/netreg/netreg.xml @@ -1,4 +1,4 @@ - + . 0x0501