nvidiabl-0.87-linux-4.0.patch 904 B

123456789101112131415161718192021222324
  1. From dee67fbf8eeec1651dbee3c2045ce6a93da949dc Mon Sep 17 00:00:00 2001
  2. From: Thomas Wucher <mail@thomaswucher.de>
  3. Date: Tue, 14 Apr 2015 08:41:09 +0200
  4. Subject: [PATCH] Replace strnicmp by stncasecmp to fix build on Linux 4.0
  5. ---
  6. nvidiabl-module.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/nvidiabl-module.c b/nvidiabl-module.c
  9. index b789ea4..b306579 100644
  10. --- a/nvidiabl-module.c
  11. +++ b/nvidiabl-module.c
  12. @@ -214,7 +214,7 @@ static int __init nvidiabl_init(void)
  13. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
  14. for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) {
  15. - if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
  16. + if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
  17. props.type = backlight_type_ids[iii].type;
  18. printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id);
  19. }