mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	Minor hint patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										10
									
								
								pbx.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								pbx.c
									
									
									
									
									
								
							@@ -1336,6 +1336,7 @@ int ast_extension_state_del(int id)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    struct ast_notify *list, *prev = NULL;
 | 
					    struct ast_notify *list, *prev = NULL;
 | 
				
			||||||
    struct ast_notify_cb *cblist, *cbprev;
 | 
					    struct ast_notify_cb *cblist, *cbprev;
 | 
				
			||||||
 | 
					    int res = -1;
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
    pthread_mutex_lock(¬ifylock);
 | 
					    pthread_mutex_lock(¬ifylock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1366,6 +1367,7 @@ int ast_extension_state_del(int id)
 | 
				
			|||||||
			list = prev->next;
 | 
								list = prev->next;
 | 
				
			||||||
		    }
 | 
							    }
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							res = 0;
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	    } else {
 | 
						    } else {
 | 
				
			||||||
    		cbprev = cblist;				
 | 
					    		cbprev = cblist;				
 | 
				
			||||||
@@ -1374,7 +1376,7 @@ int ast_extension_state_del(int id)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// we can have only one item
 | 
						// we can have only one item
 | 
				
			||||||
	if (cblist)
 | 
						if (cblist || !list)
 | 
				
			||||||
	    break;	    
 | 
						    break;	    
 | 
				
			||||||
	    
 | 
						    
 | 
				
			||||||
	prev = list;
 | 
						prev = list;
 | 
				
			||||||
@@ -1382,11 +1384,7 @@ int ast_extension_state_del(int id)
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    pthread_mutex_unlock(¬ifylock);
 | 
					    pthread_mutex_unlock(¬ifylock);
 | 
				
			||||||
    if (list) 
 | 
					    return res;
 | 
				
			||||||
	return 0;
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
	return -1;
 | 
					 | 
				
			||||||
	
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int ast_get_hint(char *hint, int maxlen, struct ast_channel *c, char *context, char *exten)
 | 
					int ast_get_hint(char *hint, int maxlen, struct ast_channel *c, char *context, char *exten)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user