Check-in [183ffb8fda]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove -l
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 183ffb8fda59d2cba40e4ebb2abbbd03a55ae0d6
User & Date: bapt 2013-07-22 13:26:58
Context
2013-07-22
13:35
Remove more dead code check-in: f89d9a28b1 user: bapt tags: trunk
13:26
Remove -l check-in: 183ffb8fda user: bapt tags: trunk
13:26
Yet more utstring usage Remove cplanet* and syslog support check-in: 5882c34adc user: bapt tags: trunk
Changes

Changes to cplanet.c.

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
...
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
typedef enum {
	NONE,
	RSS,
	ATOM,
	UNKNOWN
} feed_type;

static int syslog_flag = 0; /* 0 == log to stderr */
static STRING neoerr_str; /* neoerr to string */
static sqlite3 *db;

struct feed {
	const unsigned char *name;
	UT_string *blog_title;
	UT_string *author;
................................................................................
	const char *dbpath = NULL;

	t_now = time(NULL);

	if (argc == 1)
		usage();

	while ((ch = getopt(argc, argv, "c:lhd:")) != -1)
		switch (ch) {  
			case 'h':
				usage();
				break;
			case 'd':
				dbpath = optarg;
				break;
			case 'c':
				hdf_file = optarg;
				if(access(hdf_file, F_OK | R_OK) == -1 )
					err(1, "%s", hdf_file);
				break;
			case 'l':
				syslog_flag++;
				break;
			case '?':
			default:
				usage();
		}
	argc -= optind;
	argv += optind;








<







 







|
|











<
<
<







31
32
33
34
35
36
37

38
39
40
41
42
43
44
...
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945



946
947
948
949
950
951
952
typedef enum {
	NONE,
	RSS,
	ATOM,
	UNKNOWN
} feed_type;


static STRING neoerr_str; /* neoerr to string */
static sqlite3 *db;

struct feed {
	const unsigned char *name;
	UT_string *blog_title;
	UT_string *author;
................................................................................
	const char *dbpath = NULL;

	t_now = time(NULL);

	if (argc == 1)
		usage();

	while ((ch = getopt(argc, argv, "c:hd:")) != -1)
		switch (ch) {
			case 'h':
				usage();
				break;
			case 'd':
				dbpath = optarg;
				break;
			case 'c':
				hdf_file = optarg;
				if(access(hdf_file, F_OK | R_OK) == -1 )
					err(1, "%s", hdf_file);
				break;



			case '?':
			default:
				usage();
		}
	argc -= optind;
	argv += optind;