faubackup2/src/network network_com.cpp,1.3,1.4 network_sender.cpp,1.3,1.4

Martin Waitz <[email protected]> Tue, 14 Jun 2005 20:23:37 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/src/network
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21140/src/network

Modified Files:
	network_com.cpp network_sender.cpp 
Log Message:
cleanup include files.

use #include "foo" for our own headers
use #include <bar> for system headers

the header declaring the api for the current file is included first
to make sure that the header file is self-contained

all other headers are sorted: <sys/> is first, then <netinet/>
and other subdirectory includes, then standard C and C++ headers.
internal headers come last.


Index: network_sender.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/network/network_sender.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** network_sender.cpp	8 Jun 2005 19:29:05 -0000	1.3
--- network_sender.cpp	14 Jun 2005 20:23:35 -0000	1.4
***************
*** 2,6 ****
  
  #include "network/network_sender.hpp"
! #include "common/common.hpp"
  #include <netinet/in.h>
  #include <pthread.h>
--- 2,6 ----
  
  #include "network/network_sender.hpp"
! 
  #include <netinet/in.h>
  #include <pthread.h>
***************
*** 8,11 ****
--- 8,13 ----
  #include <cstdio>
  
+ #include "common/common.hpp"
+ 
  /* have to be global */
  pthread_mutex_t sender_client1_mutex = PTHREAD_MUTEX_INITIALIZER;

Index: network_com.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/network/network_com.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** network_com.cpp	8 Jun 2005 19:29:04 -0000	1.3
--- network_com.cpp	14 Jun 2005 20:23:35 -0000	1.4
***************
*** 1,13 ****
  #include "support.h"
! #include <network/network_com.hpp>
! #include <common/fileinfo.hpp>
! #include <cstring>
  #include <sys/types.h>
  #include <sys/socket.h>
- #include <unistd.h>
  #include <netdb.h>
! #include <fstream>
! #include <common/common.hpp>
  #include <cstdlib>
  
  
--- 1,16 ----
  #include "support.h"
! 
! #include "network/network_com.hpp"
! 
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <netdb.h>
! #include <unistd.h>
! #include <cstring>
  #include <cstdlib>
+ #include <fstream>
+ 
+ #include "common/common.hpp"
+ #include "common/fileinfo.hpp"
  
  



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click