Commit 7ee01e25 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Some minor fixes concerning returning a Text_no from a call.

parent 82e6089c
/*
* $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);
}
/*
* $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);
/*
* $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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment