Check-in [66d99492b4]
Overview
Comment:Updated to compile correctly with logging disabled
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 66d99492b47b96317bf56ac833838fc1995f98ee
User & Date: rkeene on 2014-02-08 03:04:06
Other Links: manifest | tags
Context
2014-02-08
03:09
Updated to do less work if logging is disabled check-in: 7a401fd8d2 user: rkeene tags: trunk
03:04
Updated to compile correctly with logging disabled check-in: 66d99492b4 user: rkeene tags: trunk
02:50
Updated documentation check-in: 303474c09a user: rkeene tags: trunk
Changes

Modified filed.c from [f3c505b766] to [1884ac0577].

180
181
182
183
184
185
186
187
188
189
190
191

192
193
194
195
196
197
198
180
181
182
183
184
185
186

187
188
189

190
191
192
193
194
195
196
197







-



-
+







		return(-1);
	}

	return(fd);
}

/* Log a message */
//#define FILED_DONT_LOG
#ifdef FILED_DONT_LOG
#  define filed_logging_thread_init(x) 0
#  define filed_log_msg_debug(x, ...) /**/
#  define filed_log_msg(x) /**/
#  define filed_log_msg(x, ...) /**/
#else
#ifdef FILED_DEBUG
#  define filed_log_msg_debug(x, ...) { fprintf(stderr, x, __VA_ARGS__); fprintf(stderr, "\n"); fflush(stderr); }
#else
#  define filed_log_msg_debug(x, ...) /**/
#endif

428
429
430
431
432
433
434

435
436
437
438
439
440
441
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441







+







	size_t buffer_len, tmpbuffer_len;
	off_t range_start, range_end, range_length;
	int range_request;
	int fd;
	int i;

	fd = fileno(fp);
	fd = fd;

	range_start = 0;
	range_end   = 0;
	range_request = 0;
	range_length = -1;

	buffer = buffer_st->path_b;