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    180   		return(-1);
   181    181   	}
   182    182   
   183    183   	return(fd);
   184    184   }
   185    185   
   186    186   /* Log a message */
   187         -//#define FILED_DONT_LOG
   188    187   #ifdef FILED_DONT_LOG
   189    188   #  define filed_logging_thread_init(x) 0
   190    189   #  define filed_log_msg_debug(x, ...) /**/
   191         -#  define filed_log_msg(x) /**/
          190  +#  define filed_log_msg(x, ...) /**/
   192    191   #else
   193    192   #ifdef FILED_DEBUG
   194    193   #  define filed_log_msg_debug(x, ...) { fprintf(stderr, x, __VA_ARGS__); fprintf(stderr, "\n"); fflush(stderr); }
   195    194   #else
   196    195   #  define filed_log_msg_debug(x, ...) /**/
   197    196   #endif
   198    197   
................................................................................
   428    427   	size_t buffer_len, tmpbuffer_len;
   429    428   	off_t range_start, range_end, range_length;
   430    429   	int range_request;
   431    430   	int fd;
   432    431   	int i;
   433    432   
   434    433   	fd = fileno(fp);
          434  +	fd = fd;
   435    435   
   436    436   	range_start = 0;
   437    437   	range_end   = 0;
   438    438   	range_request = 0;
   439    439   	range_length = -1;
   440    440   
   441    441   	buffer = buffer_st->path_b;