From bd3becccf68eb6e2652efc3a2ed274f4930b572b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 22 Jan 2009 16:18:12 +0000 Subject: [PATCH] ebl tweak cast from pointer to integer git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8396 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/win32/filed/plugins/exchange-fd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bacula/src/win32/filed/plugins/exchange-fd.c b/bacula/src/win32/filed/plugins/exchange-fd.c index 8ad7f09d41..5bfeb4992f 100644 --- a/bacula/src/win32/filed/plugins/exchange-fd.c +++ b/bacula/src/win32/filed/plugins/exchange-fd.c @@ -206,7 +206,7 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value) { exchange_fd_context_t *context = (exchange_fd_context_t *)ctx->pContext; char *name; - int i; + int i, intval; switch (event->eventType) { case bEventJobStart: @@ -244,11 +244,13 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value) _DebugMessage(0, "BackupEnd\n"); break; case bEventLevel: - _DebugMessage(0, "JobLevel=%c %d\n", (int)value, (int)value); - context->job_level = (int)value; + intval = (intptr_t)value; + _DebugMessage(0, "JobLevel=%c %d\n", intval, intval); + context->job_level = intval; break; case bEventSince: - _DebugMessage(0, "since=%d\n", (int)value); + intval = (intptr_t)value; + _DebugMessage(0, "since=%d\n", intval); context->job_since = (time_t)value; break; case bEventStartRestoreJob: -- 2.39.5