=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/proto.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/cvs/Attic/proto.c 2004/08/03 04:58:45 1.18 --- src/usr.bin/cvs/Attic/proto.c 2004/08/04 13:26:02 1.19 *************** *** 1,4 **** ! /* $OpenBSD: proto.c,v 1.18 2004/08/03 04:58:45 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: proto.c,v 1.19 2004/08/04 13:26:02 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 758,768 **** return (0); } ! #ifdef notyet /* * cvs_sendresp() * ! * Send a response to the client of type , with optional arguments * contained in , which should not be terminated by a newline. * Returns 0 on success, or -1 on failure. */ --- 758,768 ---- return (0); } ! /* * cvs_sendresp() * ! * Send a response of type to the client, with optional arguments * contained in , which should not be terminated by a newline. * Returns 0 on success, or -1 on failure. */ *************** *** 771,778 **** cvs_sendresp(u_int rid, const char *arg) { int ret; ! size_t len; ! const char *resp; resp = cvs_resp_getbyid(rid); if (resp == NULL) { --- 771,777 ---- cvs_sendresp(u_int rid, const char *arg) { int ret; ! struct cvs_resp *resp; resp = cvs_resp_getbyid(rid); if (resp == NULL) { *************** *** 780,801 **** return (-1); } ! snprintf(cvs_proto_buf, sizeof(cvs_proto_buf), "%s %s\n", resp, ! (arg == NULL) ? "" : arg); ! ! ret = fputs(resp, stdout); if (ret == EOF) { cvs_log(LP_ERRNO, "failed to send response to client"); } else { ! if (arg != NULL) ! ret = fprintf(stdout, " %s", arg); putc('\n', stdout); } return (0); } /* * cvs_getreq() * --- 779,800 ---- return (-1); } ! ret = fputs(resp->resp_str, stdout); if (ret == EOF) { cvs_log(LP_ERRNO, "failed to send response to client"); } else { ! if (arg != NULL) { ! putc(' ', stdout); ! fputs(arg, stdout); ! } putc('\n', stdout); } return (0); } + #ifdef notyet /* * cvs_getreq() *