X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=dcc%2Ftcp.c;h=13e2c49d13dffef297a3bc8ea34d2765b21375fb;hp=8ed67febc9cc7de0953a48af0a36e908e9966e22;hb=21f9246bf308d3023699d55cb6cf8c134bcc3d1d;hpb=fe7ce5e9a344721b1ecdd4d9ec1adce5dc908a49 diff --git a/dcc/tcp.c b/dcc/tcp.c index 8ed67fe..13e2c49 100644 --- a/dcc/tcp.c +++ b/dcc/tcp.c @@ -1,8 +1,8 @@ /* tcp.c - TCP/IP stream emulation for GNU Emacs. * Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc. - * Copyright (C) 1998-2002 Daiki Ueno + * Copyright (C) 1998-2003 Daiki Ueno * - * This file is part of Liece. + * This file is part of Riece. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -55,15 +55,16 @@ static char *progname; void version () { - printf("%s (Liece) 1.4.0\n" - "Copyright (C) 1998, 1999 Daiki Ueno\n" - "This is free software; see the source for copying conditions. There is NO\n" - "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", - progname); + fprintf(stderr, + "%s (%s) %s\n" + "Copyright (C) 1998-2003 Daiki Ueno\n" + "This is free software; see the source for copying conditions. There is NO\n" + "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", + progname, PACKAGE, VERSION); } -void usage() { - printf("Usage: %s [options] host [service]\n", progname); +void usage () { + fprintf(stderr, "Usage: %s [options] host [service]\n", progname); } @@ -111,11 +112,11 @@ main (argc, argv) { case 'v': version (); - exit (1); + exit (0); break; case 'h': usage (); - exit (1); + exit (0); break; default: break;