Introduction
Introduction Statistics Contact Development Disclaimer Help
documentation: explain the value of READ_BUF_SIZ - saait - the most boring stat…
git clone git://git.codemadness.org/saait
Log
Files
Refs
README
LICENSE
---
commit 9b1c25d392ebf25c4890c5455378c1ab4f3b9021
parent 0c5d3c6e83f4f8d5266140037a9b566814dc9b12
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 11 Feb 2018 13:13:40 +0100
documentation: explain the value of READ_BUF_SIZ
+ minor style: line-wrap.
Diffstat:
M saait.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/saait.c b/saait.c
@@ -8,6 +8,8 @@
#include <unistd.h>
#endif
+/* This is the blocksize of my disk, use atleast an equal or higher value and
+ a multiple of 2 for better performance ((struct stat).st_blksize). */
#define READ_BUF_SIZ 16384
#define LEN(s) (sizeof(s)/sizeof(*s))
@@ -348,7 +350,8 @@ writepage(FILE *fp, const char *filename, struct variable *…
void
usage(void)
{
- fprintf(stderr, "%s [-c config] [-o outputdir] [-t templatedir] pages.…
+ fprintf(stderr, "%s [-c config] [-o outputdir] [-t templatedir] "
+ "pages...\n", argv0);
exit(1);
}
@@ -357,7 +360,8 @@ main(int argc, char *argv[])
{
struct block *b;
struct variable *c, *v;
- char file[PATH_MAX + 1], htmlfile[PATH_MAX + 1], outputfile[PATH_MAX +…
+ char file[PATH_MAX + 1], htmlfile[PATH_MAX + 1];
+ char outputfile[PATH_MAX + 1], *p;
size_t i, j, k;
int r;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.