diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2016-10-14 21:35:13 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-17 09:46:58 +0200 |
commit | d44e0e5ddc3ec4c7387a4044ede659781babc329 (patch) | |
tree | 0c58a6dd3be4187d00125fcc6a5115e19affef34 /drivers/staging/dgnc/dgnc_tty.c | |
parent | 6aab2d7eacb078d2ad9b6ca5245521a7886e5d29 (diff) | |
download | linux-d44e0e5ddc3ec4c7387a4044ede659781babc329.tar.bz2 |
staging: dgnc: Add const qualifier to struct declaration.
Const qualifier added to struct declaration to avoid data overwrite
during runtime and improve security.
Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_tty.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index ef9a45bc0b89..cf8aefdc9534 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -50,7 +50,7 @@ static unsigned char *dgnc_TmpWriteBuf; /* * Default transparent print information. */ -static struct digi_t dgnc_digi_init = { +static const struct digi_t dgnc_digi_init = { .digi_flags = DIGI_COOK, /* Flags */ .digi_maxcps = 100, /* Max CPS */ .digi_maxchar = 50, /* Max chars in print queue */ |