]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: remove unnecessary local variable in pager_file::puts
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 5 Mar 2025 19:13:40 +0000 (14:13 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 6 Mar 2025 16:14:54 +0000 (11:14 -0500)
commit9f5f1eb9a110bd46f7fc0c28ab187afac5e2124e
tree4e6a40cb7756e0b0d0ee02f21a70c62747e349d0
parent606062ac5b194052371e1e3ba9465912a11a27ee
gdb: remove unnecessary local variable in pager_file::puts

The lineptr variable isn't really necessary, we can just keep using
linebuffer, since the original value is linebuffer isn't needed.  Remove
lineptr, and fix some comparisons to be explicit.

Change-Id: If2f7df43bf79efd40149e46d5c77f9bc0439f879
Approved-By: Tom Tromey <tom@tromey.com>
gdb/utils.c