filter_init(): kill implicit cast warnings by adding explicit casts.
Michael
This commit is contained in:
		
							parent
							
								
									f0a46fd71c
								
							
						
					
					
						commit
						867b4c9813
					
				@ -104,15 +104,17 @@ filter_init (void)
 | 
				
			|||||||
                continue;
 | 
					                continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              if (!p)           /* head of list */
 | 
					              if (!p)           /* head of list */
 | 
				
			||||||
                fl = p = safecalloc (1, sizeof (struct filter_list));
 | 
					                fl = p = (struct filter_list *)safecalloc (1,
 | 
				
			||||||
 | 
					                                                   sizeof (struct filter_list));
 | 
				
			||||||
              else
 | 
					              else
 | 
				
			||||||
                {               /* next entry */
 | 
					                {               /* next entry */
 | 
				
			||||||
                  p->next = safecalloc (1, sizeof (struct filter_list));
 | 
					                  p->next = (struct filter_list *)safecalloc (1,
 | 
				
			||||||
 | 
					                                                   sizeof (struct filter_list));
 | 
				
			||||||
                  p = p->next;
 | 
					                  p = p->next;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              p->pat = safestrdup (s);
 | 
					              p->pat = safestrdup (s);
 | 
				
			||||||
              p->cpat = safemalloc (sizeof (regex_t));
 | 
					              p->cpat = (regex_t *)safemalloc (sizeof (regex_t));
 | 
				
			||||||
              if ((err = regcomp (p->cpat, p->pat, cflags)) != 0)
 | 
					              if ((err = regcomp (p->cpat, p->pat, cflags)) != 0)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                  fprintf (stderr, "Bad regex in %s: %s\n",
 | 
					                  fprintf (stderr, "Bad regex in %s: %s\n",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user