Author: fireball
Date: Mon Nov 24 06:22:09 2008
New Revision: 37610
URL:
http://svn.reactos.org/svn/reactos?rev=37610&view=rev
Log:
- Get rid of warnings.
Modified:
trunk/reactos/base/applications/network/ftp/cmds.c
trunk/reactos/base/applications/network/ftp/ftp.c
trunk/reactos/base/applications/network/ftp/ftp.rbuild
trunk/reactos/base/applications/network/ftp/prototypes.h
trunk/reactos/base/applications/network/ftp/ruserpass.c
Modified: trunk/reactos/base/applications/network/ftp/cmds.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/cmds.c [iso-8859-1] Mon Nov 24 06:22:09
2008
@@ -48,7 +48,6 @@
extern char *globerr;
extern char home[];
extern char *remglob();
-extern char *getenv();
extern int allbinary;
extern off_t restart_point;
extern char reply_string[];
@@ -2195,7 +2194,6 @@
int argc;
char *argv[];
{
- extern long atol();
if (argc != 2)
printf("restart: offset not specified\n");
else {
Modified: trunk/reactos/base/applications/network/ftp/ftp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/ftp.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/ftp.c [iso-8859-1] Mon Nov 24 06:22:09
2008
@@ -461,7 +461,7 @@
{
FILE *fin;
int dout = 0;
- int (*closefunc)(), _pclose(), fclose();
+ int (*closefunc)();
sig_t (*oldintr)(), (*oldintp)();
char buf[BUFSIZ], *bufp;
long bytes = 0, hashbytes = HASHBYTES;
@@ -735,7 +735,7 @@
{
FILE *fout = stdout;
int din = 0;
- int (*closefunc)(), _pclose(), fclose();
+ int (*closefunc)();
void (*oldintr)(int), (*oldintp)(int);
int oldverbose = 0, oldtype = 0, is_retr, tcrflag, nfnd, bare_lfs = 0;
char msg;
@@ -748,7 +748,6 @@
register int c, d;
struct timeval start, stop;
// struct stat st;
- extern void *malloc();
is_retr = strcmp(cmd, "RETR") == 0;
if (is_retr && verbose && printnames) {
Modified: trunk/reactos/base/applications/network/ftp/ftp.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/ftp.rbuild [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/ftp.rbuild [iso-8859-1] Mon Nov 24
06:22:09 2008
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
-<module name="ftp" type="win32cui"
installbase="system32" installname="ftp.exe"
allowwarnings="true">
+<module name="ftp" type="win32cui"
installbase="system32" installname="ftp.exe">
<include base="ftp">.</include>
<define name="lint" />
<library>kernel32</library>
Modified: trunk/reactos/base/applications/network/ftp/prototypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/prototypes.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/prototypes.h [iso-8859-1] Mon Nov 24
06:22:09 2008
@@ -44,8 +44,6 @@
int sleep(int time);
char *tail();
-int errno;
-char *mktemp();
void setbell(), setdebug();
void setglob(), sethash(), setport();
void setprompt();
Modified: trunk/reactos/base/applications/network/ftp/ruserpass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ftp/ruserpass.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ftp/ruserpass.c [iso-8859-1] Mon Nov 24
06:22:09 2008
@@ -29,9 +29,6 @@
#include "prototypes.h"
#include <winsock.h>
-char *renvlook(), *index(), *getenv(), *getpass(), *getlogin();
-void *malloc();
-char *strcpy();
struct utmp *getutmp();
static FILE *cfile;
@@ -73,7 +70,6 @@
char myname[MAXHOSTNAMELEN];
int t, i, c, usedefault = 0;
struct stat stb;
- extern int errno;
hdir = getenv("HOME");
if (hdir == NULL)