mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
BSD portability enhancements (bug #234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/signal.h>
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib.h>
|
||||
|
||||
@@ -243,7 +243,7 @@ static int scan_service(char *fn, time_t now, time_t atime)
|
||||
if (o->retries <= o->maxretries + 1) {
|
||||
/* Add a retry line at the end */
|
||||
fseek(f, 0L, SEEK_END);
|
||||
fprintf(f, "Retry: %d (%ld)\n", o->retries, now);
|
||||
fprintf(f, "Retry: %d (%ld)\n", o->retries, (long) now);
|
||||
fclose(f);
|
||||
now += o->retrytime;
|
||||
launch_service(o);
|
||||
|
||||
Reference in New Issue
Block a user