<div dir="ltr"><div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 29 янв. 2019 г. в 20:38, Radostin Stoyanov <<a href="mailto:rstoyanov1@gmail.com">rstoyanov1@gmail.com</a>>:<br></div><div>... <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
@@ -1014,9 +999,9 @@ int read_remote_image_connection(char *snapshot_id, char *path)<br>
path, snapshot_id);<br>
return -1;<br>
}<br>
- if (!error || !strncmp(path, RESTORE_FINISH, sizeof(RESTORE_FINISH)))<br>
+ if (!error || !strncmp(path, RESTORE_FINISH, sizeof(RESTORE_FINISH))) {<br>
return sockfd;<br>
- else if (error == ENOENT) {<br>
+ } else if (error == ENOENT) {<br>
pr_info("Image does not exist (%s:%s)\n", path, snapshot_id);<br>
close(sockfd);<br>
return -ENOENT;</blockquote><div><br></div><div>Is these hunk really an indentation fix? we have many places of:</div><div><br></div><div>if (condition1)</div><div> action1;</div><div>else if (condition2) {</div><div> action2;</div><div> action3;</div><div>}</div><div><br></div><div>[snorch@snorch criu]$ git log --oneline | head -n1<br>109432a3d c-lib: strdup for service_address and service_binary<br>[snorch@snorch criu]$ git grep "^[^}]*else if.* {$" | wc -l<br>23</div><div><br></div></div></div></div>