ifconfig: code shrink
[oweals/busybox.git] / miscutils / rx.c
index 9b9f6afd485e8bca751611672e7d05846a28e11b..898703c592a377a80361e54955934048be271f44 100644 (file)
@@ -1,7 +1,6 @@
 /* vi: set sw=4 ts=4: */
 /*-------------------------------------------------------------------------
  * Filename:      xmodem.c
- * Version:       $Id: rx.c,v 1.2 2004/03/15 08:28:46 andersen Exp $
  * Copyright:     Copyright (C) 2001, Hewlett-Packard Company
  * Author:        Christopher Hoover <ch@hpl.hp.com>
  * Description:   xmodem functionality for uploading of kernels
@@ -20,7 +19,7 @@
  *
  */
 
-#include "busybox.h"
+#include "libbb.h"
 
 #define SOH 0x01
 #define STX 0x02
@@ -44,7 +43,8 @@ Cf:
 #define TIMEOUT_LONG 10
 #define MAXERRORS 10
 
-static int read_byte(int fd, unsigned int timeout) {
+static int read_byte(int fd, unsigned int timeout)
+{
        char buf[1];
        int n;
 
@@ -249,6 +249,7 @@ static void sigalrm_handler(int ATTRIBUTE_UNUSED signum)
 {
 }
 
+int rx_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int rx_main(int argc, char **argv)
 {
        char *fn;