X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aft.c;h=e682c203adb8678f0ae4db31060f6cbb3ddbe327;hp=503105efabafb1cba792231d767c6c142197889a;hb=aea0aba712b2170e2d39ffa1c8f8cb55fc0881bf;hpb=cb6d1dfb9e4067229a4bbde0abd05784d97ef14b diff --git a/aft.c b/aft.c index 503105ef..e682c203 100644 --- a/aft.c +++ b/aft.c @@ -4,6 +4,7 @@ #include #include "afh.h" #include "afs.h" +#include "net.h" #include "string.h" int mp3_get_file_info(char *map, size_t numbytes, @@ -1029,7 +1030,7 @@ out: * full list: list everything, including afsi, afhi, atts as clear text * * */ -int com_afs_ls(__a_unused int fd, int argc, const char **argv) +int com_afs_ls(int fd, int argc, const char **argv) { int i, ret; unsigned flags = 0; @@ -1135,7 +1136,7 @@ int com_afs_ls(__a_unused int fd, int argc, const char **argv) ret = send_option_arg_callback_request(&query, opts.num_patterns, argv + i, com_ls_callback, &ls_output); if (ret >= 0 && ls_output.data) { - printf("%s\n", (char *)ls_output.data); + send_buffer(fd, (char *)ls_output.data); free(ls_output.data); } return ret; @@ -1436,7 +1437,7 @@ out_free: return ret; } -int com_add(int fd, int argc, const char **argv) +int com_add(int fd, int argc, char **argv) { int i, ret; struct private_add_data pad = {.fd = fd, .flags = 0};