Make the utils directory compile... again.

Utils is a source folder that lies,
eventually all developers will cry,
"I know I must maintain it,
But really with this last commit
I can kiss my software ethics good-bye."



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Jordan
2013-06-13 21:53:45 +00:00
parent 0e2a9d07ac
commit 988295c6a8
4 changed files with 17 additions and 16 deletions

View File

@@ -20,6 +20,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/backtrace.h"
#include "asterisk/channel.h"
#include "asterisk/ast_expr.h"
#include "asterisk/module.h"
@@ -621,12 +622,12 @@ void ast_store_lock_info(enum ast_lock_type type, const char *filename,
{
}
int ast_bt_get_addresses(struct ast_bt *bt)
int __ast_bt_get_addresses(struct ast_bt *bt)
{
return 0;
}
char **ast_bt_get_symbols(void **addresses, size_t num_frames)
char **__ast_bt_get_symbols(void **addresses, size_t num_frames)
{
char **foo = calloc(num_frames, sizeof(char *) + 1);
if (foo) {

View File

@@ -71,14 +71,14 @@ void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt)
/* not a lot to do in a standalone w/o threading! */
}
int ast_bt_get_addresses(struct ast_bt *bt);
int ast_bt_get_addresses(struct ast_bt *bt)
int __ast_bt_get_addresses(struct ast_bt *bt);
int __ast_bt_get_addresses(struct ast_bt *bt)
{
/* Suck it, you stupid utils directory! */
return 0;
}
char **ast_bt_get_symbols(void **addresses, size_t num_frames);
char **ast_bt_get_symbols(void **addresses, size_t num_frames)
char **__ast_bt_get_symbols(void **addresses, size_t num_frames);
char **__ast_bt_get_symbols(void **addresses, size_t num_frames)
{
char **foo = calloc(num_frames, sizeof(char *) + 1);
if (foo) {

View File

@@ -750,12 +750,12 @@ void ast_store_lock_info(enum ast_lock_type type, const char *filename,
{
}
int ast_bt_get_addresses(struct ast_bt *bt)
int __ast_bt_get_addresses(struct ast_bt *bt)
{
return 0;
}
char **ast_bt_get_symbols(void **addresses, size_t num_frames)
char **__ast_bt_get_symbols(void **addresses, size_t num_frames)
{
char **foo = calloc(num_frames, sizeof(char *) + 1);
if (foo) {

View File

@@ -280,20 +280,20 @@ void ast_unregister_thread(void *id)
{
}
#ifdef HAVE_BKTR
struct ast_bt *ast_bt_create(void);
struct ast_bt *ast_bt_create(void)
struct ast_bt *__ast_bt_create(void);
struct ast_bt *__ast_bt_create(void)
{
return NULL;
}
int ast_bt_get_addresses(struct ast_bt *bt);
int ast_bt_get_addresses(struct ast_bt *bt)
int __ast_bt_get_addresses(struct ast_bt *bt);
int __ast_bt_get_addresses(struct ast_bt *bt)
{
return 0;
}
char **ast_bt_get_symbols(void **addresses, size_t num_frames);
char **ast_bt_get_symbols(void **addresses, size_t num_frames)
char **__ast_bt_get_symbols(void **addresses, size_t num_frames);
char **__ast_bt_get_symbols(void **addresses, size_t num_frames)
{
char **foo = calloc(num_frames, sizeof(char *) + 1);
if (foo) {
@@ -305,8 +305,8 @@ char **ast_bt_get_symbols(void **addresses, size_t num_frames)
return foo;
}
void *ast_bt_destroy(struct ast_bt *bt);
void *ast_bt_destroy(struct ast_bt *bt)
void *__ast_bt_destroy(struct ast_bt *bt);
void *__ast_bt_destroy(struct ast_bt *bt)
{
return NULL;
}