From 7ee01e2553b5dc62ed4eb8b09b48ce5cbfe58f63 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sat, 16 Nov 1991 03:30:08 +0000 Subject: [PATCH] Some minor fixes concerning returning a Text_no from a call. --- src/server/prot-a-output.c | 6 +++--- src/server/prot-a-output.h | 7 +++++-- src/server/prot-a.c | 9 +++++++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/server/prot-a-output.c b/src/server/prot-a-output.c index 9292cd3d2..3efd8f452 100644 --- a/src/server/prot-a-output.c +++ b/src/server/prot-a-output.c @@ -1,5 +1,5 @@ /* - * $Id: prot-a-output.c,v 0.6 1991/11/10 19:02:26 linus Exp $ + * $Id: prot-a-output.c,v 0.7 1991/11/16 03:30:08 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -28,7 +28,7 @@ * Written by ceder 1990-07-13 */ -static char *rcsid = "$Id: prot-a-output.c,v 0.6 1991/11/10 19:02:26 linus Exp $"; +static char *rcsid = "$Id: prot-a-output.c,v 0.7 1991/11/16 03:30:08 ceder Exp $"; #include <kom-types.h> @@ -531,5 +531,5 @@ void prot_a_output_text_no(Connection *fp, Text_no text) { - mux_printf(fp, " %lu", text); + mux_printf(fp, " %lu", (u_long) text); } diff --git a/src/server/prot-a-output.h b/src/server/prot-a-output.h index 5704f1d60..779bc5992 100644 --- a/src/server/prot-a-output.h +++ b/src/server/prot-a-output.h @@ -1,5 +1,5 @@ /* - * $Id: prot-a-output.h,v 0.3 1991/09/15 10:30:25 linus Exp $ + * $Id: prot-a-output.h,v 0.4 1991/11/16 03:30:07 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -23,7 +23,7 @@ * Please mail bug reports to bug-lyskom@lysator.liu.se. */ /* - * $Id: prot-a-output.h,v 0.3 1991/09/15 10:30:25 linus Exp $ + * $Id: prot-a-output.h,v 0.4 1991/11/16 03:30:07 ceder Exp $ * */ extern void @@ -124,3 +124,6 @@ void prot_a_output_session_no(Connection *fp, Session_no session_no); +void +prot_a_output_text_no(Connection *fp, + Text_no text); diff --git a/src/server/prot-a.c b/src/server/prot-a.c index 5ebeb9c9b..52dc6ac6d 100644 --- a/src/server/prot-a.c +++ b/src/server/prot-a.c @@ -1,5 +1,5 @@ /* - * $Id: prot-a.c,v 0.10 1991/11/11 00:27:32 ceder Exp $ + * $Id: prot-a.c,v 0.11 1991/11/16 03:30:05 ceder Exp $ * Copyright (C) 1991 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -26,7 +26,7 @@ * Protocol A. */ -static char *rcsid = "$Id: prot-a.c,v 0.10 1991/11/11 00:27:32 ceder Exp $"; +static char *rcsid = "$Id: prot-a.c,v 0.11 1991/11/16 03:30:05 ceder Exp $"; #include <stdio.h> @@ -160,6 +160,11 @@ prot_a_reply(Connection *client, prot_a_output_session_no (client, res->session_no); BUG(("=(Session_no)%d\n", res->session_no)); break; + + case rt_text_no: + prot_a_output_text_no (client, res->text_no); + BUG(("=(Text_no)%d\n", res->text_no)); + break; } mux_putc('\n', client); } -- GitLab