mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
stringop.c: rewrite strip_whitespace
This commit is contained in:
parent
3b4cf3718b
commit
967566e37f
5 changed files with 17 additions and 27 deletions
|
|
@ -49,7 +49,7 @@ char *input_device_get_identifier(struct wlr_input_device *device) {
|
|||
int vendor = device->vendor;
|
||||
int product = device->product;
|
||||
char *name = strdup(device->name);
|
||||
name = strip_whitespace(name);
|
||||
strip_whitespace(name);
|
||||
|
||||
char *p = name;
|
||||
for (; *p; ++p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue