mapi: Style fixes in glapi/glapi_getproc.c
authorYonggang Luo <luoyonggang@gmail.com>
Fri, 23 Jun 2023 04:50:35 +0000 (12:50 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 29 Jun 2023 01:36:09 +0000 (01:36 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23879>

src/mapi/glapi/glapi_getproc.c

index 74c8a7b..a31bc0f 100644 (file)
@@ -42,7 +42,7 @@
  */
 
 
-#if !defined(DISPATCH_FUNCTION_SIZE) 
+#if !defined(DISPATCH_FUNCTION_SIZE)
 # define NEED_FUNCTION_POINTER
 #endif
 #include "glprocs.h"
  * and return the corresponding glprocs_table_t entry.
  */
 static const glprocs_table_t *
-get_static_proc( const char * n )
+get_static_proc(const char *n)
 {
    GLuint i;
    for (i = 0; static_functions[i].Name_offset >= 0; i++) {
       const char *testName = gl_string_table + static_functions[i].Name_offset;
       if (strcmp(testName, n) == 0)
       {
-        return &static_functions[i];
+         return &static_functions[i];
       }
    }
    return NULL;
@@ -74,7 +74,7 @@ get_static_proc( const char * n )
 static GLint
 get_static_proc_offset(const char *funcName)
 {
-   const glprocs_table_t * const f = get_static_proc( funcName );
+   const glprocs_table_t *const f = get_static_proc(funcName);
    if (f == NULL) {
       return -1;
    }
@@ -159,7 +159,7 @@ _glapi_get_proc_address(const char *funcName)
 
    init_glapi_relocs_once();
 
-  if (!funcName || funcName[0] != 'g' || funcName[1] != 'l')
+   if (!funcName || funcName[0] != 'g' || funcName[1] != 'l')
       return NULL;
 
    /* search static functions */