Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1704902
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] isdn: kcapi: make capi_version const |
| Date | 2017-08-06 19:10 +0200 |
| Message-ID | <ubxdV-50T-67@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Declare this structure as const as it is only used during a copy
operation.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/isdn/capi/kcapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c
index 9ca691d..46c189a 100644
--- a/drivers/isdn/capi/kcapi.c
+++ b/drivers/isdn/capi/kcapi.c
@@ -55,7 +55,7 @@ struct capictr_event {
/* ------------------------------------------------------------- */
-static struct capi_version driver_version = {2, 0, 1, 1 << 4};
+static const struct capi_version driver_version = {2, 0, 1, 1 << 4};
static char driver_serial[CAPI_SERIAL_LEN] = "0004711";
static char capi_manufakturer[64] = "AVM Berlin";
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] isdn: kcapi: make capi_version const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-06 19:10 +0200
csiph-web