mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Use sway_log functions instead of wlr_log
This commit is contained in:
parent
1185a8cc1f
commit
c7c1cf31f7
79 changed files with 377 additions and 372 deletions
|
|
@ -8,7 +8,7 @@ char *read_line(FILE *file) {
|
|||
char *string = malloc(size);
|
||||
char lastChar = '\0';
|
||||
if (!string) {
|
||||
wlr_log(L_ERROR, "Unable to allocate memory for read_line");
|
||||
sway_log(L_ERROR, "Unable to allocate memory for read_line");
|
||||
return NULL;
|
||||
}
|
||||
while (1) {
|
||||
|
|
@ -29,7 +29,7 @@ char *read_line(FILE *file) {
|
|||
char *new_string = realloc(string, size *= 2);
|
||||
if (!new_string) {
|
||||
free(string);
|
||||
wlr_log(L_ERROR, "Unable to allocate memory for read_line");
|
||||
sway_log(L_ERROR, "Unable to allocate memory for read_line");
|
||||
return NULL;
|
||||
}
|
||||
string = new_string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue