On 8/31/21 11:04 PM, renlei1...@163.com wrote:
From: Ren Lei
the length of LINE_ENDING is static, it's a waste to call
strlen every time.
AFAIK gcc optimizes out calls to strlen of a literal constant string,
making this hand-optimization unnecessary.
Signed-off-by: Ren Lei
---
From: Ren Lei
the length of LINE_ENDING is static, it's a waste to call
strlen every time.
Signed-off-by: Ren Lei
---
src/qemu/qemu_agent.c| 5 +++--
src/qemu/qemu_monitor_json.c | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_agent.c