Module Name: othersrc
Committed By: lukem
Date: Sun Jul 5 09:53:01 UTC 2020
Modified Files:
othersrc/usr.bin/tnftp/libnetbsd: err.c
Log Message:
consistent tab indenting, not a mix of spaces and tabs
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/usr.bin/tnftp/libnetbsd/err.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/usr.bin/tnftp/libnetbsd/err.c
diff -u othersrc/usr.bin/tnftp/libnetbsd/err.c:1.4 othersrc/usr.bin/tnftp/libnetbsd/err.c:1.5
--- othersrc/usr.bin/tnftp/libnetbsd/err.c:1.4 Wed May 11 01:01:56 2005
+++ othersrc/usr.bin/tnftp/libnetbsd/err.c Sun Jul 5 09:53:01 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.4 2005/05/11 01:01:56 lukem Exp $ */
+/* $NetBSD: err.c,v 1.5 2020/07/05 09:53:01 lukem Exp $ */
/*
* Copyright 1997-2000 Luke Mewburn <[email protected]>.
@@ -32,61 +32,61 @@
void
err(int eval, const char *fmt, ...)
{
- va_list ap;
- int sverrno;
+ va_list ap;
+ int sverrno;
sverrno = errno;
- (void)fprintf(stderr, "%s: ", getprogname());
+ (void)fprintf(stderr, "%s: ", getprogname());
va_start(ap, fmt);
- if (fmt != NULL) {
- (void)vfprintf(stderr, fmt, ap);
- (void)fprintf(stderr, ": ");
- }
+ if (fmt != NULL) {
+ (void)vfprintf(stderr, fmt, ap);
+ (void)fprintf(stderr, ": ");
+ }
va_end(ap);
- (void)fprintf(stderr, "%s\n", strerror(sverrno));
- exit(eval);
+ (void)fprintf(stderr, "%s\n", strerror(sverrno));
+ exit(eval);
}
void
errx(int eval, const char *fmt, ...)
{
- va_list ap;
+ va_list ap;
- (void)fprintf(stderr, "%s: ", getprogname());
+ (void)fprintf(stderr, "%s: ", getprogname());
va_start(ap, fmt);
- if (fmt != NULL)
- (void)vfprintf(stderr, fmt, ap);
+ if (fmt != NULL)
+ (void)vfprintf(stderr, fmt, ap);
va_end(ap);
- (void)fprintf(stderr, "\n");
- exit(eval);
+ (void)fprintf(stderr, "\n");
+ exit(eval);
}
void
warn(const char *fmt, ...)
{
- va_list ap;
- int sverrno;
+ va_list ap;
+ int sverrno;
sverrno = errno;
- (void)fprintf(stderr, "%s: ", getprogname());
+ (void)fprintf(stderr, "%s: ", getprogname());
va_start(ap, fmt);
- if (fmt != NULL) {
- (void)vfprintf(stderr, fmt, ap);
- (void)fprintf(stderr, ": ");
- }
+ if (fmt != NULL) {
+ (void)vfprintf(stderr, fmt, ap);
+ (void)fprintf(stderr, ": ");
+ }
va_end(ap);
- (void)fprintf(stderr, "%s\n", strerror(sverrno));
+ (void)fprintf(stderr, "%s\n", strerror(sverrno));
}
void
warnx(const char *fmt, ...)
{
- va_list ap;
+ va_list ap;
- (void)fprintf(stderr, "%s: ", getprogname());
+ (void)fprintf(stderr, "%s: ", getprogname());
va_start(ap, fmt);
- if (fmt != NULL)
- (void)vfprintf(stderr, fmt, ap);
+ if (fmt != NULL)
+ (void)vfprintf(stderr, fmt, ap);
va_end(ap);
- (void)fprintf(stderr, "\n");
+ (void)fprintf(stderr, "\n");
}