Rename getline function to unsafe, to make it greppable.
Now i can trim them one-by-one.
This commit is contained in:
@ -55,7 +55,7 @@ static int Dpi_read_comm_keys(int *port)
|
||||
fname = dStrconcat(dGethomedir(), "/.flenser/dpid_comm_keys", NULL);
|
||||
if ((In = fopen(fname, "r")) == NULL) {
|
||||
MSG_ERR("[Dpi_read_comm_keys] %s\n", dStrerror(errno));
|
||||
} else if ((rcline = dGetline(In)) == NULL) {
|
||||
} else if ((rcline = dGetline_unsafe(In)) == NULL) {
|
||||
MSG_ERR("[Dpi_read_comm_keys] empty file: %s\n", fname);
|
||||
} else {
|
||||
*port = strtol(rcline, &tail, 10);
|
||||
|
Reference in New Issue
Block a user