Commit 65ad7da1 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix some declaration and write string warnings.

parent 4d2d627c
......@@ -234,7 +234,7 @@ static void test_decodeInt(DWORD dwEncoding)
struct encodedFiletime
{
SYSTEMTIME sysTime;
BYTE *encodedTime;
const BYTE *encodedTime;
};
static void testTimeEncoding(DWORD dwEncoding, LPCSTR structType,
......
......@@ -173,7 +173,7 @@ static inline void clear_block( void *ptr, size_t size )
/***********************************************************************
* HEAP_Dump
*/
void HEAP_Dump( HEAP *heap )
static void HEAP_Dump( HEAP *heap )
{
int i;
SUBHEAP *subheap;
......@@ -244,7 +244,7 @@ void HEAP_Dump( HEAP *heap )
}
void HEAP_DumpEntry( LPPROCESS_HEAP_ENTRY entry )
static void HEAP_DumpEntry( LPPROCESS_HEAP_ENTRY entry )
{
WORD rem_flags;
TRACE( "Dumping entry %p\n", entry );
......
......@@ -27,7 +27,7 @@
#include "winbase.h"
#include "oleauto.h"
void ref_count_test(LPCWSTR type_lib)
static void ref_count_test(LPCWSTR type_lib)
{
ITypeLib *iface;
ITypeInfo *iti1, *iti2;
......
......@@ -343,7 +343,7 @@ static void mixer_test_controlA(HMIXER mix, LPMIXERCONTROLA control)
}
}
void mixer_test_deviceA(int device)
static void mixer_test_deviceA(int device)
{
MIXERCAPSA capsA;
HMIXER mix;
......@@ -720,7 +720,7 @@ static void mixer_test_controlW(HMIXER mix, LPMIXERCONTROLW control)
}
}
void mixer_test_deviceW(int device)
static void mixer_test_deviceW(int device)
{
MIXERCAPSW capsW;
HMIXER mix;
......@@ -952,7 +952,7 @@ void mixer_test_deviceW(int device)
}
}
void mixer_testsA()
static void mixer_testsA(void)
{
MIXERCAPSA capsA;
HMIXER mix;
......@@ -978,7 +978,7 @@ void mixer_testsA()
mixer_test_deviceA(d);
}
void mixer_testsW()
static void mixer_testsW(void)
{
MIXERCAPSW capsW;
HMIXER mix;
......
......@@ -705,7 +705,7 @@ if (err<0) { \
}
/* return a string duplicated on the win32 process heap, free with HeapFree */
static char* ALSA_strdup(char *s) {
static char* ALSA_strdup(const char *s) {
char *result = HeapAlloc(GetProcessHeap(), 0, strlen(s)+1);
strcpy(result, s);
return result;
......
......@@ -23,7 +23,7 @@
#include "wine/unicode.h"
/* get the decomposition of a Unicode char */
int get_decomposition( WCHAR src, WCHAR *dst, unsigned int dstlen )
static int get_decomposition( WCHAR src, WCHAR *dst, unsigned int dstlen )
{
extern const WCHAR unicode_decompose_table[];
const WCHAR *ptr = unicode_decompose_table;
......
......@@ -386,7 +386,7 @@ static int chomp( WCHAR *str )
return count;
}
void process_args( WCHAR *cmdline, int *pargc, WCHAR ***pargv )
static void process_args( WCHAR *cmdline, int *pargc, WCHAR ***pargv )
{
WCHAR **argv, *p = msi_strdup(cmdline);
int i, n;
......@@ -404,7 +404,7 @@ void process_args( WCHAR *cmdline, int *pargc, WCHAR ***pargv )
*pargv = argv;
}
BOOL process_args_from_reg( LPWSTR ident, int *pargc, WCHAR ***pargv )
static BOOL process_args_from_reg( LPWSTR ident, int *pargc, WCHAR ***pargv )
{
LONG r;
HKEY hkey = 0, hkeyArgs = 0;
......
......@@ -40,7 +40,7 @@ void *xrealloc (void *op, size_t len)
return p;
}
char *vstrfmtmake (size_t *lenp, const char *fmt, va_list ap)
static char *vstrfmtmake (size_t *lenp, const char *fmt, va_list ap)
{
size_t size = 1000;
char *p, *q;
......
Markdown is supported
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