Skip to content
Snippets Groups Projects
Commit fb88df05 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

if ( and while ( instead of if( and while(

parent 44b55a0e
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ int callback_encryption_init_post(const struct _u_request * request,
char * command = NULL;
asprintf(&command, "rsync -a %s/ %s", UNENCRYPTED_MOUNTPOINT, TMP_LOCATION);
r = system(command);
if(r != 0)
if (r != 0)
{
printf("copying root device contents into memory failed"
": return code %d\n", r);
......
......@@ -229,7 +229,7 @@ int parse_int(const char * input, int * result)
*/
int add_ssh_command(char ** ssh_key_with_command, const char * ssh_key)
{
if(strncmp(SSH_COMMAND, ssh_key, strlen(SSH_COMMAND)) != 0)
if (strncmp(SSH_COMMAND, ssh_key, strlen(SSH_COMMAND)) != 0)
return asprintf(ssh_key_with_command, "%s %s", SSH_COMMAND, ssh_key);
else
return asprintf(ssh_key_with_command, "%s", ssh_key);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment