X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/388e0319a0faf48193658c82228133bd1ea24eb6..HEAD:/priv/comm.c diff --git a/priv/comm.c b/priv/comm.c index ad2e518c..becb492a 100644 --- a/priv/comm.c +++ b/priv/comm.c @@ -9,19 +9,18 @@ * * This file is part of Trivial IP Encryption (TrIPE). * - * TrIPE is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * TrIPE is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your + * option) any later version. * - * TrIPE is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * TrIPE is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. * * You should have received a copy of the GNU General Public License - * along with TrIPE; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with TrIPE. If not, see . */ /*----- Header files ------------------------------------------------------*/ @@ -65,16 +64,15 @@ int pc_put(const void *p, size_t sz) return (0); } -/* --- @pc_puterr@, @pc_putuint@, @pc_putsz@, @pc_puttops@ --- * +/* --- @pc_puterr@, @pc_putuint@, @pc_putsz@ --- * * * Arguments: @int err@ = error number to write * @uint u@ = unsigned integer to write * @size_t sz@ = size to write - * @const tunnel_ops *tops@ = tunnel pointer to write * * Returns: Zero on success, @-1@ on error (and @errno@ set). * - * Use: Sends an error/integer/size/tunnel-ops pointer. + * Use: Sends an error/integer/size. */ #define PUT(abbr, type) \ @@ -87,7 +85,7 @@ COMM_TYPES(PUT) * * Returns: Zero on success, @-1@ on error (and @errno@ set). * - * Use: Sends a string/error/integer/tunnel-ops pointer. + * Use: Sends a string. */ int pc_putstring(const char *s) @@ -132,23 +130,22 @@ int pc_get(void *p, size_t sz) return (0); } -/* --- @pc_geterr@, @pc_getuint@, @pc_getsz@, @pc_getops@ --- * +/* --- @pc_geterr@, @pc_getuint@, @pc_getsz@ --- * * * Arguments: @int *err@ = where to put the error number * @uint *u@ = where to put the unsigned integer * @size_t *sz@ = where to put the size - * @const tunnel_ops **tops@ = where to put the tunnel pointer * * Returns: Zero on success, @-1@ on error (and @errno@ set). * - * Use: Receives an error/integer/size/tunnel-ops pointer. + * Use: Receives an error/integer/size. */ #define GET(abbr, type) \ int pc_get##abbr(type *x) { return (pc_get(x, sizeof(*x))); } COMM_TYPES(GET) -/* --- @pc_gettring@ --- * +/* --- @pc_getstring@ --- * * * Arguments: @dstr *d@ = where to pc_put the string *