[Freeswitch-branches] [commit] r5246 - freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file

Freeswitch SVN anthonyl at freeswitch.org
Fri Jun 1 17:24:29 EDT 2007


Author: anthonyl
Date: Fri Jun  1 17:24:29 2007
New Revision: 5246

Modified:
   freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c

Log:
replace the last fseek call with something that we can use.


Modified: freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c
==============================================================================
--- freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c	(original)
+++ freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c	Fri Jun  1 17:24:29 2007
@@ -220,7 +220,7 @@
         memset(q, '\0', 1024);
         nbytes = 1024;
     }
-    /* ret = fseek(globals.log_fd, 0, SEEK_SET); replace me */
+    stat = switch_file_seek(&globals.log_afd, APR_SET, 0);
     free(p);
     free(q);
     return SWITCH_STATUS_SUCCESS;



More information about the Freeswitch-branches mailing list