X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c6f2d14d9c38345075629af3487c2de491584ca1..3c54bbb247ffc8fa094d754099c0b009e79d484d:/sbr/cpydgst.c diff --git a/sbr/cpydgst.c b/sbr/cpydgst.c index 55df3fc6..4878e8fe 100644 --- a/sbr/cpydgst.c +++ b/sbr/cpydgst.c @@ -1,6 +1,4 @@ - -/* - * cpydgst.c -- copy from one fd to another in encapsulating mode +/* cpydgst.c -- copy from one fd to another in encapsulating mode * -- (do dashstuffing of input data). * * This code is Copyright (c) 2002, by the authors of nmh. See the @@ -8,7 +6,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "cpydgst.h" +#include "error.h" /* * We want to perform the substitution @@ -51,8 +51,8 @@ cpydgst (int in, int out, char *ifile, char *ofile) output ('-'); output (' '); } - state = S2; /* fall */ - + state = S2; + /* FALLTHRU */ case S2: output (*cp); if (*cp == '\n')