Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
/* /*
* $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. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Written by ceder 1990-07-13 * 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> #include <kom-types.h>
...@@ -531,5 +531,5 @@ void ...@@ -531,5 +531,5 @@ void
prot_a_output_text_no(Connection *fp, prot_a_output_text_no(Connection *fp,
Text_no text) 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. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se. * 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 extern void
...@@ -124,3 +124,6 @@ void ...@@ -124,3 +124,6 @@ void
prot_a_output_session_no(Connection *fp, prot_a_output_session_no(Connection *fp,
Session_no session_no); 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. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* Protocol A. * 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> #include <stdio.h>
...@@ -160,6 +160,11 @@ prot_a_reply(Connection *client, ...@@ -160,6 +160,11 @@ prot_a_reply(Connection *client,
prot_a_output_session_no (client, res->session_no); prot_a_output_session_no (client, res->session_no);
BUG(("=(Session_no)%d\n", res->session_no)); BUG(("=(Session_no)%d\n", res->session_no));
break; 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); mux_putc('\n', client);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment