Don't define LINE_MAX.

It's a POSIX mistake we'd been avoiding, but finally added to
bionic.

It's unclear to me that this code shouldn't just be using fscanf()
and getline() to simplify the code and avoid arbitrary hard-coded
limits -- since the code does do some allocation already -- but
that's a bigger cleanup for a code owner.

Change-Id: Ibab28f082a084c1f933ee6a39aa4ee3fa7868e5a
This commit is contained in:
Elliott Hughes 2024-04-09 16:16:03 +00:00
parent 20de82dde2
commit c2d8bfdf59
1 changed files with 0 additions and 5 deletions

View File

@ -52,11 +52,6 @@ enum lmk_cmd {
*/
#define CTRL_PACKET_MAX_SIZE (sizeof(int) * (MAX_TARGETS * 2 + 1))
/*
* Max number of characters in line.
*/
#define LINE_MAX 128
/* LMKD packet - first int is lmk_cmd followed by payload */
typedef int LMKD_CTRL_PACKET[CTRL_PACKET_MAX_SIZE / sizeof(int)];