diff --git a/Makefile b/Makefile index cb5a76a..7b64f3c 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ LDFLAGS = `./ldflags` OBJS = arch/${ARCH}/getload.o \ arch/${ARCH}/terminfo.o \ - arch/default/homebrews.o + ${NULL} # this is what I use most places... CC=gcc -pedantic -Wall diff --git a/arch/Linux/platform.h b/arch/Linux/platform.h deleted file mode 100644 index 8f5ffcc..0000000 --- a/arch/Linux/platform.h +++ /dev/null @@ -1,4 +0,0 @@ -/* This file contains platform settings for Linux */ - -/* at least my Linux box doesn't have ascftime, so we've got to fall back to asctime() */ -#undef HAVE_ASCFTIME diff --git a/arch/default/homebrews.c b/arch/default/homebrews.c deleted file mode 100644 index 07273b5..0000000 --- a/arch/default/homebrews.c +++ /dev/null @@ -1,53 +0,0 @@ -/* some function replacements for platforms that don't have the - * real things... *sigh* */ - -#include -#include -#include - - -/**********************/ -/***** ascftime() *****/ -/**********************/ - -#ifndef HAVE_ASCFTIME - -/* our own version of ascftime, since Linux (and others?) - * doesn't (don't) seem to have it. For now, this is done in a - * very klugey way, and it will certainly need to be re-written - * (to be useful, anyway) if and when there ever become new - * format strings used by our caller(s). */ - -int ascftime(char *s, const char *format, const struct tm *timeptr) -{ - int ret; - - /* if we don't have arguments, bail now. */ - if(!s || !format || !timeptr) - { - return(0); - } - - *s = '\0'; - - if(strncmp(format, "^%H:%M", 6) == 0) - { - ret = sprintf(s, "^%02d:%02d", - timeptr->tm_hour, timeptr->tm_min); - } - else if(strncmp(format, "%T", 2) == 0) - { - ret = sprintf(s, "^%02d:%02d:%02d", - timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec); - } - else - { - /* indicate failure, since we don't have generic - * compliance for any old format: */ - ret = 0; - } - - return(ret); -} - -#endif /* HAVE_ASCFTIME */ diff --git a/arch/default/platform.h b/arch/default/platform.h deleted file mode 100644 index 8018943..0000000 --- a/arch/default/platform.h +++ /dev/null @@ -1,4 +0,0 @@ -/* This file contains default platform settings */ - -/* do we have ascftime()? */ -#define HAVE_ASCFTIME