Browse Source

A couple of NULL.

Brian Aker 13 years ago
parent
commit
01c91d3dd5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      libgearman/execute.cc

+ 4 - 4
libgearman/execute.cc

@@ -163,19 +163,19 @@ gearman_task_st *gearman_execute_by_partition(gearman_client_st *client,
                                               gearman_argument_t *arguments,
                                               void *context)
 {
-  if (not client)
+  if (client == NULL)
   {
     errno= EINVAL;
     return NULL;
   }
 
-  if (not partition_function or partition_function_length == 0)
+  if ((partition_function == NULL) or (partition_function_length == 0))
   {
     gearman_error(client->universal, GEARMAN_INVALID_ARGUMENT, "function_name was NULL");
     return NULL;
   }
 
-  if (not function_name or function_name_length == 0)
+  if ((function_name == NULL) or (function_name_length == 0))
   {
     gearman_error(client->universal, GEARMAN_INVALID_ARGUMENT, "function_name was NULL");
     return NULL;
@@ -250,7 +250,7 @@ gearman_task_st *gearman_execute_by_partition(gearman_client_st *client,
                            NULL);
   }
 
-  if (not task)
+  if (task == NULL)
   {
     return NULL;
   }