mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 15:54:56 +00:00
Fixup warnings and undefined operations that show up in gcc-3.1
-Erik
This commit is contained in:
parent
cafc103230
commit
2276d83639
@ -81,3 +81,4 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
|
|||||||
}
|
}
|
||||||
return(output_buffer);
|
return(output_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,3 +104,4 @@ file_header_t *get_header_ar(FILE *src_stream)
|
|||||||
|
|
||||||
return(typed);
|
return(typed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,3 +134,4 @@ file_header_t *get_header_cpio(FILE *src_stream)
|
|||||||
}
|
}
|
||||||
return(cpio_entry);
|
return(cpio_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,3 +97,4 @@ file_header_t *get_header_tar(FILE *tar_stream)
|
|||||||
|
|
||||||
return(tar_entry);
|
return(tar_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,3 +33,4 @@ void seek_sub_file(FILE *src_stream, const int count)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,7 +434,7 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct
|
|||||||
temp += FI(B,C,D);
|
temp += FI(B,C,D);
|
||||||
}
|
}
|
||||||
temp += cwp[(int)(*pp++)] + *pc++;
|
temp += cwp[(int)(*pp++)] + *pc++;
|
||||||
temp = CYCLIC (temp, ps[i&3]);
|
CYCLIC (temp, ps[i&3]);
|
||||||
temp += B;
|
temp += B;
|
||||||
A = D; D = C; C = B; B = temp;
|
A = D; D = C; C = B; B = temp;
|
||||||
}
|
}
|
||||||
@ -443,7 +443,7 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct
|
|||||||
|
|
||||||
for ( i = 0 ; i < 16 ; i++ ) {
|
for ( i = 0 ; i < 16 ; i++ ) {
|
||||||
temp = A + FF(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
temp = A + FF(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
||||||
temp = CYCLIC (temp, ps[i&3]);
|
CYCLIC (temp, ps[i&3]);
|
||||||
temp += B;
|
temp += B;
|
||||||
A = D; D = C; C = B; B = temp;
|
A = D; D = C; C = B; B = temp;
|
||||||
}
|
}
|
||||||
@ -451,21 +451,21 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct
|
|||||||
ps += 4;
|
ps += 4;
|
||||||
for ( i = 0 ; i < 16 ; i++ ) {
|
for ( i = 0 ; i < 16 ; i++ ) {
|
||||||
temp = A + FG(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
temp = A + FG(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
||||||
temp = CYCLIC (temp, ps[i&3]);
|
CYCLIC (temp, ps[i&3]);
|
||||||
temp += B;
|
temp += B;
|
||||||
A = D; D = C; C = B; B = temp;
|
A = D; D = C; C = B; B = temp;
|
||||||
}
|
}
|
||||||
ps += 4;
|
ps += 4;
|
||||||
for ( i = 0 ; i < 16 ; i++ ) {
|
for ( i = 0 ; i < 16 ; i++ ) {
|
||||||
temp = A + FH(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
temp = A + FH(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
||||||
temp = CYCLIC (temp, ps[i&3]);
|
CYCLIC (temp, ps[i&3]);
|
||||||
temp += B;
|
temp += B;
|
||||||
A = D; D = C; C = B; B = temp;
|
A = D; D = C; C = B; B = temp;
|
||||||
}
|
}
|
||||||
ps += 4;
|
ps += 4;
|
||||||
for ( i = 0 ; i < 16 ; i++ ) {
|
for ( i = 0 ; i < 16 ; i++ ) {
|
||||||
temp = A + FI(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
temp = A + FI(B,C,D) + cwp[(int)(*pp++)] + *pc++;
|
||||||
temp = CYCLIC (temp, ps[i&3]);
|
CYCLIC (temp, ps[i&3]);
|
||||||
temp += B;
|
temp += B;
|
||||||
A = D; D = C; C = B; B = temp;
|
A = D; D = C; C = B; B = temp;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@ -49,7 +50,7 @@ static char tbl_std[65] = {
|
|||||||
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
|
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
|
||||||
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
|
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
|
||||||
'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
|
'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
|
||||||
'\`' /* termination character */
|
'`' /* termination character */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -401,8 +401,10 @@ static char *parse_cmd_str(struct sed_cmd * const sed_cmd, const char *const cmd
|
|||||||
idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);
|
idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);
|
||||||
|
|
||||||
/* second part (if present) will begin with a comma */
|
/* second part (if present) will begin with a comma */
|
||||||
if (cmdstr[idx] == ',')
|
if (cmdstr[idx] == ',') {
|
||||||
idx += get_address(sed_cmd, &cmdstr[++idx], &sed_cmd->end_line, &sed_cmd->end_match);
|
idx++;
|
||||||
|
idx += get_address(sed_cmd, &cmdstr[idx], &sed_cmd->end_line, &sed_cmd->end_match);
|
||||||
|
}
|
||||||
|
|
||||||
/* skip whitespace before the command */
|
/* skip whitespace before the command */
|
||||||
while (isspace(cmdstr[idx]))
|
while (isspace(cmdstr[idx]))
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* Foundation; either version 2 of the License, or (at
|
* Foundation; either version 2 of the License, or (at
|
||||||
* your option) any later version.
|
* your option) any later version.
|
||||||
*
|
*
|
||||||
* $Id: ifconfig.c,v 1.17 2002/07/03 11:46:34 andersen Exp $
|
* $Id: ifconfig.c,v 1.18 2002/07/11 11:11:52 andersen Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -504,6 +504,7 @@ int ifconfig_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOOP:
|
LOOP:
|
||||||
|
continue;
|
||||||
} /* end of while-loop */
|
} /* end of while-loop */
|
||||||
|
|
||||||
return goterr;
|
return goterr;
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <string.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <arpa/telnet.h>
|
#include <arpa/telnet.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -11129,7 +11129,7 @@ redirect(union node *redir, int flags)
|
|||||||
{
|
{
|
||||||
union node *n;
|
union node *n;
|
||||||
struct redirtab *sv = NULL;
|
struct redirtab *sv = NULL;
|
||||||
int i;
|
int i = EMPTY;
|
||||||
int fd;
|
int fd;
|
||||||
int newfd;
|
int newfd;
|
||||||
int try;
|
int try;
|
||||||
@ -12440,7 +12440,7 @@ findvar(struct var **vpp, const char *name)
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
|
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
|
||||||
* This file contains code for the times builtin.
|
* This file contains code for the times builtin.
|
||||||
* $Id: ash.c,v 1.54 2002/07/04 00:19:46 andersen Exp $
|
* $Id: ash.c,v 1.55 2002/07/11 11:11:51 andersen Exp $
|
||||||
*/
|
*/
|
||||||
static int timescmd (int argc, char **argv)
|
static int timescmd (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user