From: Eric Bollengier Date: Thu, 22 Jan 2009 16:18:12 +0000 (+0000) Subject: ebl tweak cast from pointer to integer X-Git-Tag: Release-3.0.0~282 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd3becccf68eb6e2652efc3a2ed274f4930b572b;p=bacula%2Fbacula ebl tweak cast from pointer to integer git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8396 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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: