Skip to content

Commit

Permalink
quick: More clang-formatting fixes and fixing some pointer to bool wa…
Browse files Browse the repository at this point in the history
…rnings

Clang-format fixes and fixing some pointer to bool conversion warnings.

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Jan 22, 2025
1 parent 44d6757 commit 89094aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/openseachest_util_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const char* deviceHandleExample = "vmhba<#>";
const char* deviceHandleName = "<deviceHandle>";
const char* commandWindowType = "terminal";
# else
const char* deviceHandleExample = "/dev/sg<#>";
const char* deviceHandleName = "<sg_device>";
const char* commandWindowType = "terminal";
const char* deviceHandleExample = "/dev/sg<#>";
const char* deviceHandleName = "<sg_device>";
const char* commandWindowType = "terminal";
# endif
#elif defined(__FreeBSD__)
const char* deviceHandleExample = "/dev/da<#>";
Expand Down Expand Up @@ -3377,7 +3377,7 @@ int parse_Device_Handle_Argument(char* optarg,
/*list already allocated, so reallocate and add this next handle to it.*/
char** temp = M_REINTERPRET_CAST(
char**, safe_reallocf(C_CAST(void**, handleList), (*deviceCount) * sizeof(char*)));
if (!temp)
if (temp == M_NULLPTR)
{
perror("error reallocating memory for handle list\n");
return 255;
Expand Down

0 comments on commit 89094aa

Please sign in to comment.