]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl tweak cast from pointer to integer
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 22 Jan 2009 16:18:12 +0000 (16:18 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 22 Jan 2009 16:18:12 +0000 (16:18 +0000)
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

index 8ad7f09d416e96e2845735ebc4157e832b8f5ee7..5bfeb4992fd73ba2b95b8bb68b913aeb44897811 100644 (file)
@@ -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: