[hipl-commit] [trunk] Rev 4367: Mark functions only used in conntest.c as static.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 18:08:01 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 20/04/2010 at 18:08:01
Revision: 4367
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Mark functions only used in conntest.c as static.

Modified:
  M  test/conntest.c
  M  test/conntest.h

=== modified file 'test/conntest.c'
--- test/conntest.c     2010-04-20 15:06:25 +0000
+++ test/conntest.c     2010-04-20 15:07:46 +0000
@@ -22,7 +22,7 @@
  *
  * @return the socket id, exits on error.
  */
-int create_serversocket(int type, in_port_t port)
+static int create_serversocket(int type, in_port_t port)
 {
     int fd = -1, on = 1, err = 0;
     struct sockaddr_in6 addr;
@@ -94,7 +94,7 @@
  * @param serversock the server socket
  * @return zero on success or negative on error
  */
-int main_server_tcp(int serversock)
+static int main_server_tcp(int serversock)
 {
     int peerfd = 0, err = 0;
     socklen_t locallen;
@@ -498,7 +498,7 @@
  *                are the @c errno values of socket(), connect() and close()
  *                with a minus sign.
  */
-int hip_connect_func(struct addrinfo *peer_ai, int *sock)
+static int hip_connect_func(struct addrinfo *peer_ai, int *sock)
 {
     int err                    = 0, connect_err = 0;
     unsigned long microseconds = 0;

=== modified file 'test/conntest.h'
--- test/conntest.h     2010-03-19 09:00:54 +0000
+++ test/conntest.h     2010-04-20 15:07:46 +0000
@@ -23,16 +23,9 @@
 #include "lib/core/ife.h"
 
 
-int create_socket(int proto);
-int create_serversocket(int type, in_port_t port);
 int main_server(int type, in_port_t port);
-int main_server_tcp(int serversock);
-int main_server_native(int socktype, char *port_name, char *name);
-
-int hip_connect_func(struct addrinfo *res, int *sock);
 int main_client_gai(int socktype, char *peer_name,
                     char *peer_port_name,
                     int hints);
-int main_client_native(int socktype, char *peer_name, char *peer_port_name);
 
 #endif /* HIP_TEST_CONNTEST_H */

Other related posts:

  • » [hipl-commit] [trunk] Rev 4367: Mark functions only used in conntest.c as static. - Diego Biurrun