Revert some changes that accidentally got committed as a part of another fix.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-02-03 20:39:45 +00:00
parent 8c161f55e4
commit fed5b6a9b4
3 changed files with 16 additions and 67 deletions

11
utils.c
View File

@@ -907,14 +907,3 @@ void ast_enable_packet_fragmentation(int sock)
#endif
}
AST_MUTEX_DEFINE_STATIC(fetchadd_m); /* used for all fetc&add ops */
int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
{
int ret;
ast_mutex_lock(&fetchadd_m);
ret = *p;
*p += v;
ast_mutex_unlock(&fetchadd_m);
return ret;
}