aboutsummaryrefslogtreecommitdiff
path: root/more.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--more.c (renamed from core/more.c)12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/more.c b/more.c
index fb67915..0f67aed 100644
--- a/core/more.c
+++ b/more.c
@@ -10,13 +10,17 @@
#include <termios.h>
#include <sys/ioctl.h>
-#define REQ_PRINT_USAGE /* Require print_usage() from ../common/common.h */
-#define REQ_ERRPRINT /* Require errprint() from ../common/common.h */
+#define REQ_PRINT_USAGE /* Require print_usage() from common.h */
+#define REQ_ERRPRINT /* Require errprint() from common.h */
#define DESCRIPTION "Display files in a page-by-page basis."
#define OPERANDS "file ..."
-#include "../common/common.h"
+#include "common.h"
-int main(int argc, char *const argv[]) {
+#ifdef FASESBOX
+int more_main(int argc, char *argv[]) {
+#else
+int main(int argc, char *argv[]) {
+#endif
int i = 0, argument, success = 0, read_file = 1;
long int /* columns, */ lines;
char buffer[4096], cmd, *argv0 = strdup(argv[0]);