-/* $OpenBSD: client.h,v 1.3 2017/08/30 07:42:52 otto Exp $ */
+/* $OpenBSD: client.h,v 1.4 2021/06/22 20:19:28 jmc Exp $ */
#ifndef __CLIENT_H__
#define __CLIENT_H__
/* distopt.c */
int parsedistopts(char *, opt_t *, int);
-char *getdistoptlist(void);
char *getondistoptlist(opt_t);
/* docmd.c */
-/* $OpenBSD: defs.h,v 1.38 2018/09/21 19:00:45 millert Exp $ */
+/* $OpenBSD: defs.h,v 1.39 2021/06/22 20:19:28 jmc Exp $ */
#ifndef __DEFS_H__
#define __DEFS_H__
char *searchpath(char *);
/* message.c */
-void msgprusage(void);
void msgprconfig(void);
char *msgparseopts(char *, int);
void checkhostname(void);
-/* $OpenBSD: distopt.c,v 1.13 2015/01/20 09:00:16 guenther Exp $ */
+/* $OpenBSD: distopt.c,v 1.14 2021/06/22 20:19:28 jmc Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
return(nerrs);
}
-/*
- * Get a list of the Distfile Option Entries.
- */
-char *
-getdistoptlist(void)
-{
- int i;
- static char buf[1024];
-
- for (i = 0, buf[0] = CNULL; distoptinfo[i].do_name; ++i) {
- if (buf[0] == CNULL)
- (void) strlcpy(buf, distoptinfo[i].do_name, sizeof buf);
- else {
- (void) strlcat(buf, ",", sizeof buf);
- (void) strlcat(buf, distoptinfo[i].do_name, sizeof buf);
- }
- }
-
- return(buf);
-}
-
/*
* Get a list of the Distfile Option Entries for each enabled
* value in "opts".
-/* $OpenBSD: message.c,v 1.29 2019/06/28 05:35:35 deraadt Exp $ */
+/* $OpenBSD: message.c,v 1.30 2021/06/22 20:19:28 jmc Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
static void _error(const char *);
static void _fatalerr(const char *);
-/*
- * Print message logging usage message
- */
-void
-msgprusage(void)
-{
- int i, x;
-
- (void) fprintf(stderr, "\nWhere <msgopt> is of form\n");
- (void) fprintf(stderr,
- "\t<facility1>=<type1>,<type2>,...:<facility2>=<type1>,<type2>...\n");
-
- (void) fprintf(stderr, "Valid <facility> names:");
-
- for (i = 0; msgfacility[i].mf_name; ++i)
- (void) fprintf(stderr, " %s", msgfacility[i].mf_name);
-
- (void) fprintf(stderr, "\nValid <type> names:");
- for (x = 0; msgtypes[x].mt_name; ++x)
- (void) fprintf(stderr, " %s", msgtypes[x].mt_name);
-
- (void) fprintf(stderr, "\n");
-}
-
/*
* Print enabled message logging info
*/
-/* $OpenBSD: rdist.c,v 1.31 2017/07/09 14:04:50 espie Exp $ */
+/* $OpenBSD: rdist.c,v 1.32 2021/06/22 20:19:28 jmc Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
extern char *__progname;
(void) fprintf(stderr,
- "usage: %s [-DFnV] [-A num] [-a num] "
- "[-c mini_distfile]\n"
- "\t[-d var=value] [-f distfile] [-L remote_logopts] "
- "[-l local_logopts]\n"
- "\t[-M maxproc] [-m host] [-o distopts] [-P rsh-path] "
- "[-p rdistd-path]\n"
- "\t[-t timeout] [name ...]\n", __progname);
-
-
- (void) fprintf(stderr, "\nThe values for <distopts> are:\n\t%s\n",
- getdistoptlist());
-
- msgprusage();
+ "usage: %s [-DFnV] [-A num] [-a num] [-c mini_distfile]"
+ " [-d var=value]\n"
+ "\t[-f distfile] [-L remote_logopts] [-l local_logopts]"
+ " [-M maxproc]\n"
+ "\t[-m host] [-o distopts] [-P rsh-path] [-p rdistd-path]"
+ " [-t timeout]\n"
+ "\t[name ...]\n", __progname);
exit(1);
}