xfree86: Remove comments about unable to use malloc.
These are leftovers from when X still used Xmalloc and friends for allocation. Now that those are gone, these comments are just confusing. Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
		
							parent
							
								
									79ee78de9d
								
							
						
					
					
						commit
						747bf5fe80
					
				| 
						 | 
					@ -1046,11 +1046,6 @@ xf86PrintDefaultLibraryPath(void)
 | 
				
			||||||
int
 | 
					int
 | 
				
			||||||
ddxProcessArgument(int argc, char **argv, int i)
 | 
					ddxProcessArgument(int argc, char **argv, int i)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  /*
 | 
					 | 
				
			||||||
   * Note: can't use xalloc/xfree here because OsInit() hasn't been called
 | 
					 | 
				
			||||||
   * yet.  Use malloc/free instead.
 | 
					 | 
				
			||||||
   */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#define CHECK_FOR_REQUIRED_ARGUMENT() \
 | 
					#define CHECK_FOR_REQUIRED_ARGUMENT() \
 | 
				
			||||||
    if (((i + 1) >= argc) || (!argv[i + 1])) { 				\
 | 
					    if (((i + 1) >= argc) || (!argv[i + 1])) { 				\
 | 
				
			||||||
      ErrorF("Required argument to %s not specified\n", argv[i]); 	\
 | 
					      ErrorF("Required argument to %s not specified\n", argv[i]); 	\
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -132,7 +132,6 @@ xf86parseFlagsSection (void)
 | 
				
			||||||
					if (ServerFlagsTab[i].token == token)
 | 
										if (ServerFlagsTab[i].token == token)
 | 
				
			||||||
					{
 | 
										{
 | 
				
			||||||
						char *valstr = NULL;
 | 
											char *valstr = NULL;
 | 
				
			||||||
						/* can't use strdup because it calls malloc */
 | 
					 | 
				
			||||||
						tmp = strdup (ServerFlagsTab[i].name);
 | 
											tmp = strdup (ServerFlagsTab[i].name);
 | 
				
			||||||
						if (hasvalue)
 | 
											if (hasvalue)
 | 
				
			||||||
						{
 | 
											{
 | 
				
			||||||
| 
						 | 
					@ -365,7 +364,6 @@ xf86optionListCreate( const char **options, int count, int used )
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	for (i = 0; i < count; i += 2)
 | 
						for (i = 0; i < count; i += 2)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		/* can't use strdup because it calls malloc */
 | 
					 | 
				
			||||||
		t1 = malloc (sizeof (char) *
 | 
							t1 = malloc (sizeof (char) *
 | 
				
			||||||
				(strlen (options[i]) + 1));
 | 
									(strlen (options[i]) + 1));
 | 
				
			||||||
		strcpy (t1, options[i]);
 | 
							strcpy (t1, options[i]);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue