make format_au compile on FreeBSD (bug #4456)
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 5 Jun 2005 14:50:21 +0000 (14:50 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 5 Jun 2005 14:50:21 +0000 (14:50 +0000)
change out-of-memory messages to LOG_ERROR

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5845 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_au.c

index 8a3fdff..4ad1958 100755 (executable)
@@ -10,8 +10,6 @@
  * the GNU General Public License
  */
  
  * the GNU General Public License
  */
  
-#include <netinet/in.h>
-#include <arpa/inet.h>
 #include <stdlib.h>
 #include <sys/time.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
 #include <stdio.h>
@@ -190,7 +188,7 @@ static struct ast_filestream *au_open(int fd)
        struct ast_filestream *tmp;
 
        if (!(tmp = malloc(sizeof(struct ast_filestream)))) {
        struct ast_filestream *tmp;
 
        if (!(tmp = malloc(sizeof(struct ast_filestream)))) {
-               ast_log(LOG_WARNING, "Out of memory\n");
+               ast_log(LOG_ERROR, "Out of memory\n");
                return NULL;
        }
 
                return NULL;
        }
 
@@ -222,7 +220,7 @@ static struct ast_filestream *au_rewrite(int fd, const char *comment)
        struct ast_filestream *tmp;
 
        if ((tmp = malloc(sizeof(struct ast_filestream))) == NULL) {
        struct ast_filestream *tmp;
 
        if ((tmp = malloc(sizeof(struct ast_filestream))) == NULL) {
-               ast_log(LOG_WARNING, "Out of memory\n");
+               ast_log(LOG_ERROR, "Out of memory\n");
                return NULL;
        }
 
                return NULL;
        }