diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -33,34 +33,10 @@ #include #include -/** Converts an integer to a string, in ANSI C, thanks to Dom_ (http://www.signalsondisplay.com/) */ +/** Converts an integer to a string, currently a stub. */ char *int_to_str(int nbr) { - int div; - int len; - int i; - char *res; - res = malloc(4 * sizeof(*res)); // Was xmalloc, hopefully it still works :D - i = 0; - while (i < 3) - res[i++] = '\0'; - res[3] = '\0'; - i = 0; - div = 1; - len = 1; - while (nbr / div >= 10) - { - div *= 10; - len++; - } - while (len) - { - res[i++] = '0' + (nbr / div); - len--; - nbr %= div; - div /= 10; - } - return (res); + return; } /** Generates a SSH key with ssh-keygen */