Mercurial > gftp.yaz
comparison lib/protocols.c @ 76:fe308e435ed5
2002-12-4 Brian Masney <masneyb@gftp.org>
* lib/protocols.c (gftp_set_data_type) - return 0 if there is no
protocol specific set_data_type function
* src/gtk/transfer.c (gftp_gtk_transfer_files) - ascii/binary automatic
switching fixes
author | masneyb |
---|---|
date | Thu, 05 Dec 2002 00:43:07 +0000 |
parents | e2b30d0c97a4 |
children | 7ef60ce2bdb2 |
comparison
equal
deleted
inserted
replaced
75:77c77098795a | 76:fe308e435ed5 |
---|---|
494 gftp_set_data_type (gftp_request * request, int data_type) | 494 gftp_set_data_type (gftp_request * request, int data_type) |
495 { | 495 { |
496 g_return_val_if_fail (request != NULL, -2); | 496 g_return_val_if_fail (request != NULL, -2); |
497 | 497 |
498 if (request->set_data_type == NULL) | 498 if (request->set_data_type == NULL) |
499 return (-2); | 499 return (0); |
500 return (request->set_data_type (request, data_type)); | 500 return (request->set_data_type (request, data_type)); |
501 } | 501 } |
502 | 502 |
503 | 503 |
504 void | 504 void |