less warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@483 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -435,7 +435,7 @@ mput(int argc, char **argv)
|
|||||||
if (!*tp) {
|
if (!*tp) {
|
||||||
tp = cp;
|
tp = cp;
|
||||||
tp2 = tmpbuf;
|
tp2 = tmpbuf;
|
||||||
while ((*tp2 = *tp) != NULL) {
|
while ((*tp2 = *tp) != '\0') {
|
||||||
if (isupper(*tp2)) {
|
if (isupper(*tp2)) {
|
||||||
*tp2 = 'a' + *tp2 - 'A';
|
*tp2 = 'a' + *tp2 - 'A';
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ usage:
|
|||||||
if (!*tp) {
|
if (!*tp) {
|
||||||
tp = argv[2];
|
tp = argv[2];
|
||||||
tp2 = tmpbuf;
|
tp2 = tmpbuf;
|
||||||
while ((*tp2 = *tp) != NULL) {
|
while ((*tp2 = *tp) != '\0') {
|
||||||
if (isupper(*tp2)) {
|
if (isupper(*tp2)) {
|
||||||
*tp2 = 'a' + *tp2 - 'A';
|
*tp2 = 'a' + *tp2 - 'A';
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,17 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <pwd.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -29,16 +39,6 @@
|
|||||||
|
|
||||||
extern int h_errno;
|
extern int h_errno;
|
||||||
|
|
||||||
#include <pwd.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
|
|
||||||
#include "extern.h"
|
#include "extern.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "ftp_var.h"
|
#include "ftp_var.h"
|
||||||
|
@@ -45,6 +45,10 @@ RCSID("$Id$");
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
|
#include <sys/resource.h>
|
||||||
|
#endif
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@@ -851,7 +855,7 @@ filename_check(char *filename)
|
|||||||
p++;
|
p++;
|
||||||
while(*p && (isalnum(*p) || strchr(good_chars, *p)))
|
while(*p && (isalnum(*p) || strchr(good_chars, *p)))
|
||||||
p++;
|
p++;
|
||||||
if(*p == NULL)
|
if(*p == '\0')
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
lreply(553, "\"%s\" is an illegal filename.", filename);
|
lreply(553, "\"%s\" is an illegal filename.", filename);
|
||||||
|
@@ -16,7 +16,7 @@ extern state_table * pop_get_command();
|
|||||||
int hangup = FALSE ;
|
int hangup = FALSE ;
|
||||||
|
|
||||||
static RETSIGTYPE
|
static RETSIGTYPE
|
||||||
catchSIGHUP()
|
catchSIGHUP(int sig)
|
||||||
{
|
{
|
||||||
hangup = TRUE ;
|
hangup = TRUE ;
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ int pop_timeout = POP_TIMEOUT;
|
|||||||
jmp_buf env;
|
jmp_buf env;
|
||||||
|
|
||||||
static RETSIGTYPE
|
static RETSIGTYPE
|
||||||
ring()
|
ring(int sig)
|
||||||
{
|
{
|
||||||
longjmp(env,1);
|
longjmp(env,1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user