]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bsnprintf.c
kes Add dynamic dll entry point for SHGetFolderPath to Win32 code.
[bacula/bacula] / bacula / src / lib / bsnprintf.c
index 4094e0028357aad9fc70e7c05cd1b27061f1c0eb..1d1d2553c2352291380f79d58fd4ba4397e04d38 100644 (file)
  *
  *   Version $Id$
  */
+/*
+   Bacula® - The Network Backup Solution
+
+   Copyright (C) 2005-2006 Free Software Foundation Europe e.V.
+
+   The main author of Bacula is Kern Sibbald, with contributions from
+   many others, a complete list can be found in the file AUTHORS.
+   This program is Free Software; you can redistribute it and/or
+   modify it under the terms of version two of the GNU General Public
+   License as published by the Free Software Foundation plus additions
+   that are listed in the file LICENSE.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
+
+   Bacula® is a registered trademark of John Walker.
+   The licensor of Bacula is the Free Software Foundation Europe
+   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+   Switzerland, email:ftf@fsfeurope.org.
+*/
+
 
 
 #include "bacula.h"
@@ -254,11 +282,11 @@ int bvsnprintf(char *buffer, int32_t maxlen, const char *format, va_list args)
             if (cflags == DP_C_INT16) {
                value = va_arg(args, uint32_t);
             } else if (cflags == DP_C_INT32) {
-               value = (long)va_arg(args, uint32_t);
+               value = va_arg(args, uint32_t);
             } else if (cflags == DP_C_INT64) {
-               value = (int64_t) va_arg(args, uint64_t);
+               value = va_arg(args, uint64_t);
             } else {
-               value = (long)va_arg(args, unsigned int);
+               value = va_arg(args, unsigned int);
             }
             currlen = fmtint(buffer, currlen, maxlen, value, base, min, max, flags);
             break;