summaryrefslogtreecommitdiff
path: root/hooks.h
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-23 22:17:30 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-23 22:17:30 +0200
commit6fd1bd5db99ac6ca824e31612465039f724bdec2 (patch)
tree2344e7c194422c36734d0ab2904226d00822e360 /hooks.h
parent18c055658989375b5c5f6a90d97ebd54c8b351a1 (diff)
Remove unnecessary NULL initializations
Diffstat (limited to 'hooks.h')
-rw-r--r--hooks.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/hooks.h b/hooks.h
index 6d91b8e..6edc94b 100644
--- a/hooks.h
+++ b/hooks.h
@@ -1,16 +1,16 @@
#pragma once
-static void* (*_dlsym)(void*, const char*) = NULL;
-static EGLBoolean (*_eglSwapBuffers)(EGLDisplay, EGLSurface) = NULL;
-static __eglMustCastToProperFunctionPointerType (*_eglGetProcAddress)(const char*) = NULL;
-static void (*_glXSwapBuffers)(Display*, GLXDrawable) = NULL;
-static __GLXextFuncPtr (*_glXGetProcAddress)(const GLubyte*) = NULL;
-static __GLXextFuncPtr (*_glXGetProcAddressARB)(const GLubyte*) = NULL;
-static snd_pcm_sframes_t (*_snd_pcm_writei)(snd_pcm_t*, const void*, snd_pcm_uframes_t) = NULL;
-static snd_pcm_sframes_t (*_snd_pcm_writen)(snd_pcm_t*, void**, snd_pcm_uframes_t) = NULL;
-static snd_pcm_sframes_t (*_snd_pcm_mmap_writei)(snd_pcm_t*, const void*, snd_pcm_uframes_t) = NULL;
-static snd_pcm_sframes_t (*_snd_pcm_mmap_writen)(snd_pcm_t*, void**, snd_pcm_uframes_t) = NULL;
-static int (*_clock_gettime)(clockid_t, struct timespec*) = NULL;
+static void* (*_dlsym)(void*, const char*);
+static EGLBoolean (*_eglSwapBuffers)(EGLDisplay, EGLSurface);
+static __eglMustCastToProperFunctionPointerType (*_eglGetProcAddress)(const char*);
+static void (*_glXSwapBuffers)(Display*, GLXDrawable);
+static __GLXextFuncPtr (*_glXGetProcAddress)(const GLubyte*);
+static __GLXextFuncPtr (*_glXGetProcAddressARB)(const GLubyte*);
+static snd_pcm_sframes_t (*_snd_pcm_writei)(snd_pcm_t*, const void*, snd_pcm_uframes_t);
+static snd_pcm_sframes_t (*_snd_pcm_writen)(snd_pcm_t*, void**, snd_pcm_uframes_t);
+static snd_pcm_sframes_t (*_snd_pcm_mmap_writei)(snd_pcm_t*, const void*, snd_pcm_uframes_t);
+static snd_pcm_sframes_t (*_snd_pcm_mmap_writen)(snd_pcm_t*, void**, snd_pcm_uframes_t);
+static int (*_clock_gettime)(clockid_t, struct timespec*);
static void* store_real_symbol_and_return_fake_symbol(const char*, void*);
static void hook_function(void**, const char*, const bool);