Merge pull request #38 from kAworu/Wold-style-declaration
Fixes warnings emitted by gcc -Wold-style-declaration
This commit is contained in:
commit
90e12be081
4 changed files with 4 additions and 4 deletions
|
@ -281,7 +281,7 @@ static void usage(const char *progname)
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
const static struct option longopts[] = {
|
static const struct option longopts[] = {
|
||||||
{"help", 0, 0, 'H'},
|
{"help", 0, 0, 'H'},
|
||||||
{"version", 0, 0, 'V'},
|
{"version", 0, 0, 'V'},
|
||||||
{NULL, 0, 0, 0}
|
{NULL, 0, 0, 0}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "dthash.h"
|
#include "dthash.h"
|
||||||
|
|
||||||
const static uint32_t crc32_tab[] = {
|
static const uint32_t crc32_tab[] = {
|
||||||
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
|
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
|
||||||
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
|
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
|
||||||
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
|
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
|
||||||
|
|
|
@ -166,7 +166,7 @@ static void usage(const char *progname)
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
const static struct option longopts[] = {
|
static const struct option longopts[] = {
|
||||||
{"help", 0, 0, 'H'},
|
{"help", 0, 0, 'H'},
|
||||||
{"version", 0, 0, 'V'},
|
{"version", 0, 0, 'V'},
|
||||||
{NULL, 0, 0, 0}
|
{NULL, 0, 0, 0}
|
||||||
|
|
|
@ -117,7 +117,7 @@ static const uint8_t gf256_log[256] = {
|
||||||
0x74, 0xd6, 0xf4, 0xea, 0xa8, 0x50, 0x58, 0xaf
|
0x74, 0xd6, 0xf4, 0xea, 0xa8, 0x50, 0x58, 0xaf
|
||||||
};
|
};
|
||||||
|
|
||||||
const static struct galois_field gf256 = {
|
static const struct galois_field gf256 = {
|
||||||
.p = 255,
|
.p = 255,
|
||||||
.log = gf256_log,
|
.log = gf256_log,
|
||||||
.exp = gf256_exp
|
.exp = gf256_exp
|
||||||
|
|
Loading…
Reference in a new issue