Add TODO markers for later improvements.

This commit is contained in:
Andrew Wood
2026-04-12 18:39:38 +01:00
parent ef730dda06
commit 99d27893eb
+7
View File
@@ -53,8 +53,15 @@ static void pv_crs_open_lockfile(pvcursorstate_t cursor, readonly_pvcontrol_t co
char *tmpdir;
int openflags;
/* TODO: decide whether to dynamically allocate cursor->lock_file. */
cursor->lock_fd = -1;
/*
* TODO: use ttyname_r() and dynamic buffer, or copy the result of
* ttyname() to a dynamic buffer, because basename() may modify it.
*/
ttydev = ttyname(fd);
if (!ttydev) {
if (!control->force) {