1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

escape backslashes;

patch from Peter Piwowarski <peterjpiwowarski at gmail dot com>
This commit is contained in:
schwarze 2019-03-20 04:02:06 +00:00
parent 6821a20d79
commit 94534f406f
2 changed files with 11 additions and 11 deletions

View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: qsort.3,v 1.24 2019/01/22 06:49:17 jmc Exp $
.\" $OpenBSD: qsort.3,v 1.25 2019/03/20 04:02:06 schwarze Exp $
.\"
.Dd $Mdocdate: January 22 2019 $
.Dd $Mdocdate: March 20 2019 $
.Dt QSORT 3
.Os
.Sh NAME
@ -179,7 +179,7 @@ main()
qsort(array, N, sizeof(array[0]), cmp);
for (i = 0; i < N; i++)
printf("%s\n", array[i]);
printf("%s\en", array[i]);
}

View File

@ -1,4 +1,4 @@
.\" $OpenBSD: CONF_modules_load_file.3,v 1.7 2018/03/22 21:08:22 schwarze Exp $
.\" $OpenBSD: CONF_modules_load_file.3,v 1.8 2019/03/20 04:02:07 schwarze Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@ -48,7 +48,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd $Mdocdate: March 22 2018 $
.Dd $Mdocdate: March 20 2019 $
.Dt CONF_MODULES_LOAD_FILE 3
.Os
.Sh NAME
@ -163,7 +163,7 @@ Load a configuration file and print out any errors and exit (missing
file considered fatal):
.Bd -literal
if (CONF_modules_load_file(NULL, NULL, 0) <= 0) {
fprintf(stderr, "FATAL: error loading configuration file\n");
fprintf(stderr, "FATAL: error loading configuration file\en");
ERR_print_errors_fp(stderr);
exit(1);
}
@ -174,7 +174,7 @@ by "myapp", tolerate missing files, but exit on other errors:
.Bd -literal
if (CONF_modules_load_file(NULL, "myapp",
CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0) {
fprintf(stderr, "FATAL: error loading configuration file\n");
fprintf(stderr, "FATAL: error loading configuration file\en");
ERR_print_errors_fp(stderr);
exit(1);
}
@ -185,7 +185,7 @@ error, missing configuration file ignored:
.Bd -literal
if (CONF_modules_load_file("/something/app.cnf", "myapp",
CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0) {
fprintf(stderr, "WARNING: error loading configuration file\n");
fprintf(stderr, "WARNING: error loading configuration file\en");
ERR_print_errors_fp(stderr);
}
.Ed
@ -198,17 +198,17 @@ long eline;
fp = fopen("/somepath/app.cnf", "r");
if (fp == NULL) {
fprintf(stderr, "Error opening configuration file\n");
fprintf(stderr, "Error opening configuration file\en");
/* Other missing configuration file behaviour */
} else {
cnf = NCONF_new(NULL);
if (NCONF_load_fp(cnf, fp, &eline) == 0) {
fprintf(stderr, "Error on line %ld of configuration file\n",
fprintf(stderr, "Error on line %ld of configuration file\en",
eline);
ERR_print_errors_fp(stderr);
/* Other malformed configuration file behaviour */
} else if (CONF_modules_load(cnf, "appname", 0) <= 0) {
fprintf(stderr, "Error configuring application\n");
fprintf(stderr, "Error configuring application\en");
ERR_print_errors_fp(stderr);
/* Other configuration error behaviour */
}