add const to the key argument for anonymous_search().
Michael
This commit is contained in:
		
							parent
							
								
									caf20d786b
								
							
						
					
					
						commit
						c6475974b5
					
				@ -40,7 +40,7 @@ is_anonymous_enabled (void)
 | 
				
			|||||||
 * zero if the string was found, zero if it wasn't and negative upon error.
 | 
					 * zero if the string was found, zero if it wasn't and negative upon error.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
int
 | 
					int
 | 
				
			||||||
anonymous_search (char *s)
 | 
					anonymous_search (const char *s)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  assert (s != NULL);
 | 
					  assert (s != NULL);
 | 
				
			||||||
  assert (anonymous_map != NULL);
 | 
					  assert (anonymous_map != NULL);
 | 
				
			||||||
 | 
				
			|||||||
@ -22,7 +22,7 @@
 | 
				
			|||||||
#define _TINYPROXY_ANONYMOUS_H_
 | 
					#define _TINYPROXY_ANONYMOUS_H_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern short int is_anonymous_enabled (void);
 | 
					extern short int is_anonymous_enabled (void);
 | 
				
			||||||
extern int anonymous_search (char *s);
 | 
					extern int anonymous_search (const char *s);
 | 
				
			||||||
extern int anonymous_insert (char *s);
 | 
					extern int anonymous_insert (char *s);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user