[ds6-devel] nc6/src connection.h,1.7,1.8 parser.c,1.27,1.28
chris@deepspace6.net
chris@deepspace6.net
Fri Jan 3 09:12:01 2003
Update of /cvs/nc6/src
Modified Files:
connection.h parser.c
Log Message:
s/supress/suppress/g
Index: connection.h
===================================================================
RCS file: /cvs/nc6/src/connection.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- connection.h 3 Jan 2003 00:14:39 -0000 1.7
+++ connection.h 3 Jan 2003 09:11:59 -0000 1.8
@@ -71,9 +71,9 @@
#define ca_set_connection_timeout(CA, CT) \
((CA)->connect_timeout = (CT))
-#define ca_supress_half_close_remote(CA) \
+#define ca_suppress_half_close_remote(CA) \
ios_suppress_half_close(&((CA)->remote_stream), FALSE)
-#define ca_supress_half_close_local(CA) \
+#define ca_suppress_half_close_local(CA) \
ios_suppress_half_close(&((CA)->local_stream), FALSE)
#define ca_set_hold_timeout_remote(CA) \
Index: parser.c
===================================================================
RCS file: /cvs/nc6/src/parser.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- parser.c 3 Jan 2003 00:14:39 -0000 1.27
+++ parser.c 3 Jan 2003 09:11:59 -0000 1.28
@@ -96,7 +96,7 @@
int parse_arguments(int argc, char **argv, connection_attributes *attrs)
{
- int c, ret, verbosity_level = 0;
+ int c, ret = -1, verbosity_level = 0;
bool listen_mode = FALSE;
bool file_transfer = FALSE;
size_t remote_mtu = 0;
@@ -118,8 +118,6 @@
protocol = PROTO_UNSPECIFIED;
socket_type = TCP_SOCKET;
- ret = CONNECT_MODE;
-
/* option recognition loop */
while ((c = getopt_long(argc, argv, "46hlnp:q:s:uvw:x",
long_options, &option_index)) >= 0) {
@@ -326,7 +324,7 @@
/* keep remote open after half close */
if (half_close == TRUE) {
- ca_supress_half_close_remote(attrs);
+ ca_suppress_half_close_remote(attrs);
ca_set_hold_timeout_remote(attrs);
}
@@ -340,6 +338,7 @@
if (local_buffer_size > 0)
ca_resize_local_buf(attrs, local_buffer_size);
+ assert(ret != -1);
return ret;
}
More information about the ds6-devel
mailing list