remove spurious spaces & tabs at end of lines

This commit is contained in:
Philippe Teuwen
2019-03-09 08:59:13 +01:00
parent edc19f202a
commit 60f292b18e
249 changed files with 8481 additions and 8481 deletions

View File

@@ -377,7 +377,7 @@ ipqx:
/* allocate argument array */
args = argc - optind;
apolys = calloc(args * sizeof(poly_t), sizeof(char));
if ( !apolys ){
uerror("cannot allocate memory for argument list");

View File

@@ -35,7 +35,7 @@ int getopt(int argc, char *argv[], const char *optstring)
{
//static int pos = 0;
char *str;
if (pos == 0) {
if ((optind >= argc) || (*argv[optind] != '-'))
return EOF;
@@ -43,7 +43,7 @@ int getopt(int argc, char *argv[], const char *optstring)
if (argv[optind][pos] == '\0')
return EOF;
}
str = strchr(optstring, argv[optind][pos]);
if (str == NULL) {
optopt = argv[optind][pos];
@@ -52,7 +52,7 @@ int getopt(int argc, char *argv[], const char *optstring)
optopt);
return '?';
}
if (str[1] == ':') {
if (argv[optind][pos+1] != '\0') {
optarg = &argv[optind][pos+1];

View File

@@ -811,7 +811,7 @@ int mbynam(model_t *dest, const char *key) {
if (!aliases->name)
return(-1);
ukey = calloc((size_t) 1 + strlen(key) + 1, sizeof(char));
if (!ukey) {
uerror("[!] cannot allocate memory for comparison string");
@@ -863,7 +863,7 @@ char * mnames(void) {
++aptr;
}
if (!size) return(NULL);
string = calloc(size, sizeof(char));
if (string) {
aptr = aliases;

View File

@@ -173,7 +173,7 @@ modpol(const poly_t init, int rflags, int args, const poly_t *argpolys) {
unsigned long alen, blen;
if(args < 2) return(NULL);
result = calloc(((((args - 1) * args) >> 1) + 1) * sizeof(poly_t), sizeof(char));
if(!result)
uerror("cannot allocate memory for codeword table");
@@ -482,7 +482,7 @@ chkres(int *resc, model_t **result, const poly_t divisor, const poly_t init, int
uerror("cannot reallocate result array");
return;
}
rptr = *result + *resc - 1;
rptr->spoly = pclone(divisor);
rptr->init = pclone(init);