X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fmts.c;h=a4644931af50f2aa01a767734e8c6259d1f87c52;hb=865335e03bab5e0ceb47a4d20564c3afb3de30c4;hp=f43b15dea0436e1aa09c95e1e3224acd5fa32889;hpb=736132b163f34ce9eaa5b7604f49961df9f52329;p=mmh diff --git a/sbr/mts.c b/sbr/mts.c index f43b15d..a464493 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include @@ -72,34 +71,6 @@ LocalName(void) /* -** This is only for UUCP mail. It gets the hostname -** as part of the UUCP "domain". -*/ -char * -SystemName(void) -{ - static char buffer[BUFSIZ] = ""; - -#ifdef HAVE_UNAME - struct utsname name; -#endif - - /* check if we have cached the system name */ - if (buffer[0]) - return buffer; - -#ifdef HAVE_UNAME - uname(&name); - strncpy(buffer, name.nodename, sizeof(buffer)); -#else - gethostname(buffer, sizeof(buffer)); -#endif - - return buffer; -} - - -/* ** Get the username of current user */ char *