Commit 2761a900 authored by Sebastien Ponce's avatar Sebastien Ponce Committed by Steven Murray
Browse files

Fixed warnings

parent 9b43aaa7
/*
* $Id: Csnprintf.c,v 1.1 2003/11/04 13:02:35 jdurand Exp $
* $Id: Csnprintf.c,v 1.2 2007/12/07 11:40:52 sponcec3 Exp $
*/
#include "Csnprintf.h"
......@@ -7,7 +7,7 @@
/* Hide the snprintf and al. call v.s. different OS. */
/* Sometimes a different name, sometimes do not exist */
int DLL_DECL Csnprintf(char *str, size_t size, char *format, ...) {
int DLL_DECL Csnprintf(char *str, size_t size, const char *format, ...) {
int rc;
va_list args;
......@@ -20,7 +20,7 @@ int DLL_DECL Csnprintf(char *str, size_t size, char *format, ...) {
return(rc);
}
int DLL_DECL Cvsnprintf(char *str, size_t size, char *format, va_list args)
int DLL_DECL Cvsnprintf(char *str, size_t size, const char *format, va_list args)
{
#if (defined(__osf__) && defined(__alpha))
return(vsprintf(str, format, args));
......
/*
* $Id: Csnprintf.h,v 1.1 2003/11/04 13:02:56 jdurand Exp $
* $Id: Csnprintf.h,v 1.2 2007/12/07 11:40:53 sponcec3 Exp $
*/
#ifndef __Csnprintf_h
......@@ -10,7 +10,7 @@
#include <sys/types.h>
#include "osdep.h"
EXTERN_C int DLL_DECL Csnprintf _PROTO((char *, size_t, char *, ...));
EXTERN_C int DLL_DECL Cvsnprintf _PROTO((char *, size_t, char *, va_list));
EXTERN_C int DLL_DECL Csnprintf _PROTO((char *, size_t, const char *, ...));
EXTERN_C int DLL_DECL Cvsnprintf _PROTO((char *, size_t, const char *, va_list));
#endif /* __Csnprintf_h */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment