Message ID | 20240528193229.225499-3-denkenz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 0ef66f5519776814685ba379684ad03c4e50a68c |
Headers | show |
Series | [v2,1/3] build: link dundee with ell | expand |
diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c index ce42e23c57f2..5b016f2d1227 100644 --- a/drivers/qmimodem/qmi.c +++ b/drivers/qmimodem/qmi.c @@ -1154,13 +1154,13 @@ static char *get_device_interface(struct qmi_device *device) char * const driver_names[] = { "usbmisc", "usb" }; unsigned int i; char file_path[PATH_MAX]; - char *file_name; + const char *file_name; char *interface = NULL; if (!get_device_file_name(device, file_path, sizeof(file_path))) return NULL; - file_name = basename(file_path); + file_name = l_basename(file_path); for (i = 0; i < L_ARRAY_SIZE(driver_names) && !interface; i++) { char *sysfs_path;