xfree86: unconstify another string
Only Xorg -configure uses a hardcoded value here, so let's not change the rest of the server for that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									46ae9d67e4
								
							
						
					
					
						commit
						f14d6647c0
					
				| 
						 | 
				
			
			@ -337,7 +337,7 @@ configureLayoutSection(void)
 | 
			
		|||
        iptr = malloc(sizeof(XF86ConfInputrefRec));
 | 
			
		||||
        iptr->list.next = NULL;
 | 
			
		||||
        iptr->iref_option_lst = NULL;
 | 
			
		||||
        iptr->iref_inputdev_str = "Mouse0";
 | 
			
		||||
        iptr->iref_inputdev_str = strdup("Mouse0");
 | 
			
		||||
        iptr->iref_option_lst =
 | 
			
		||||
            xf86addNewOption(iptr->iref_option_lst, strdup("CorePointer"),
 | 
			
		||||
                             NULL);
 | 
			
		||||
| 
						 | 
				
			
			@ -351,7 +351,7 @@ configureLayoutSection(void)
 | 
			
		|||
        iptr = malloc(sizeof(XF86ConfInputrefRec));
 | 
			
		||||
        iptr->list.next = NULL;
 | 
			
		||||
        iptr->iref_option_lst = NULL;
 | 
			
		||||
        iptr->iref_inputdev_str = "Keyboard0";
 | 
			
		||||
        iptr->iref_inputdev_str = strdup("Keyboard0");
 | 
			
		||||
        iptr->iref_option_lst =
 | 
			
		||||
            xf86addNewOption(iptr->iref_option_lst, strdup("CoreKeyboard"),
 | 
			
		||||
                             NULL);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -288,7 +288,7 @@ typedef struct {
 | 
			
		|||
typedef struct {
 | 
			
		||||
    GenericListRec list;
 | 
			
		||||
    XF86ConfInputPtr iref_inputdev;
 | 
			
		||||
    const char *iref_inputdev_str;
 | 
			
		||||
    char *iref_inputdev_str;
 | 
			
		||||
    XF86OptionPtr iref_option_lst;
 | 
			
		||||
} XF86ConfInputrefRec, *XF86ConfInputrefPtr;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue