build warnings: initialise values...
... to make fix gcc warnings with -Wall. Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
11eef783fe
commit
5b3a0a9382
4
split.c
4
split.c
|
@ -27,9 +27,9 @@ main(int argc, char *argv[])
|
||||||
char *prefix = "x";
|
char *prefix = "x";
|
||||||
char *file = NULL;
|
char *file = NULL;
|
||||||
char *tmp, *end;
|
char *tmp, *end;
|
||||||
uint64_t size = 1000, scale, n;
|
uint64_t size = 1000, scale = 1, n;
|
||||||
int always = 0;
|
int always = 0;
|
||||||
FILE *in=stdin, *out=NULL;
|
FILE *in = stdin, *out = NULL;
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'b':
|
case 'b':
|
||||||
|
|
5
xargs.c
5
xargs.c
|
@ -40,9 +40,9 @@ usage(void)
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int leftover;
|
int leftover = 0;
|
||||||
long argsz, argmaxsz;
|
long argsz, argmaxsz;
|
||||||
char *arg;
|
char *arg = "";
|
||||||
int i, a;
|
int i, a;
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
|
@ -67,7 +67,6 @@ main(int argc, char *argv[])
|
||||||
/* Leave some room for environment variables */
|
/* Leave some room for environment variables */
|
||||||
argmaxsz -= 4 * 1024;
|
argmaxsz -= 4 * 1024;
|
||||||
|
|
||||||
leftover = 0;
|
|
||||||
do {
|
do {
|
||||||
argsz = 0; i = 0; a = 0;
|
argsz = 0; i = 0; a = 0;
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user