summaryrefslogtreecommitdiffstats
path: root/common/readline.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-01-06 09:31:34 -0500
committerLibravatar GitHub <noreply@github.com>2018-01-06 09:31:34 -0500
commit5a23959242419169fa4af032d85ee3f65e7041e4 (patch)
tree79386d3d2aa90718f8c071a3337c695cb8a71f78 /common/readline.c
parentMerge pull request #1554 from martinetd/cmd_set (diff)
parentcommon/log: finish removing most log functions (diff)
downloadsway-5a23959242419169fa4af032d85ee3f65e7041e4.tar.gz
sway-5a23959242419169fa4af032d85ee3f65e7041e4.tar.zst
sway-5a23959242419169fa4af032d85ee3f65e7041e4.zip
Merge pull request #1556 from martinetd/cleanup_logging
Cleanup logging
Diffstat (limited to 'common/readline.c')
-rw-r--r--common/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/readline.c b/common/readline.c
index cc40a2cc..ed5801de 100644
--- a/common/readline.c
+++ b/common/readline.c
@@ -8,7 +8,7 @@ char *read_line(FILE *file) {
8 char *string = malloc(size); 8 char *string = malloc(size);
9 char lastChar = '\0'; 9 char lastChar = '\0';
10 if (!string) { 10 if (!string) {
11 sway_log(L_ERROR, "Unable to allocate memory for read_line"); 11 wlr_log(L_ERROR, "Unable to allocate memory for read_line");
12 return NULL; 12 return NULL;
13 } 13 }
14 while (1) { 14 while (1) {
@@ -29,7 +29,7 @@ char *read_line(FILE *file) {
29 char *new_string = realloc(string, size *= 2); 29 char *new_string = realloc(string, size *= 2);
30 if (!new_string) { 30 if (!new_string) {
31 free(string); 31 free(string);
32 sway_log(L_ERROR, "Unable to allocate memory for read_line"); 32 wlr_log(L_ERROR, "Unable to allocate memory for read_line");
33 return NULL; 33 return NULL;
34 } 34 }
35 string = new_string; 35 string = new_string;