]> git.tue.mpg.de Git - paraslash.git/commitdiff
kill mallinfo
authorAndre <maan@p133.(none)>
Sat, 15 Apr 2006 16:04:38 +0000 (18:04 +0200)
committerAndre <maan@p133.(none)>
Sat, 15 Apr 2006 16:04:38 +0000 (18:04 +0200)
It is not important enough to care about the compatibility
issues.

command.c

index 1f94bbc25cc634d4b889e975106e32bb67c0c69f..48c34031a75f5e1d93401f419858bb3746e481ad 100644 (file)
--- a/command.c
+++ b/command.c
@@ -18,7 +18,6 @@
 
 /** \file command.c does client authentication and executes server commands */
 
-#include <malloc.h> /* mallinfo */
 #include <sys/time.h> /* gettimeofday */
 #include "crypt.h"
 #include "server.cmdline.h"
@@ -559,7 +558,6 @@ static int com_si(int fd, int argc, __a_unused char **argv)
        int i, ret;
        char *ut;
        char *selector_string = NULL, *sender_info = NULL, *sender_list = NULL;
-       struct mallinfo mi = mallinfo();
 
        if (argc != 1)
                return -E_COMMAND_SYNTAX;
@@ -578,7 +576,6 @@ static int com_si(int fd, int argc, __a_unused char **argv)
        ut = uptime_str();
        ret = send_va_buffer(fd, "up: %s\nplayed: %u\n"
                "pid: %d\n"
-               "mallinfo: %d\n"
                "connections (active/accepted/total): %u/%u/%u\n"
                "current loglevel: %i\n"
                "supported audio file selectors: %s\n"
@@ -587,7 +584,6 @@ static int com_si(int fd, int argc, __a_unused char **argv)
                "%s",
                ut, mmd->num_played,
                getppid(),
-               mi.arena / 1024,
                mmd->active_connections,
                mmd->num_commands,
                mmd->num_connects,