* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: s_log.c 3209 2007-02-11 16:54:43Z jilles $
*/
#include "stdinc.h"
rb_vsnprintf(buf, sizeof(buf), format, args);
va_end(args);
- rb_snprintf(buf2, sizeof(buf2), "%s %s\n", smalldate(), buf);
+ rb_snprintf(buf2, sizeof(buf2), "%s %s\n",
+ smalldate(rb_current_time()), buf);
if(fputs(buf2, logfile) < 0)
{
}
const char *
-smalldate(void)
+smalldate(time_t ltime)
{
static char buf[MAX_DATE_STRING];
struct tm *lt;
- time_t ltime = rb_current_time();
lt = localtime(<ime);