From ed2ffbb862fc4300272038d7f186a891d2c1d996 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Sat, 17 Sep 2011 02:30:52 -0400 Subject: [PATCH] Constify some invariant structures. --- ifchd/ifchd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ifchd/ifchd.c b/ifchd/ifchd.c index 4cc34d0..1a70eba 100644 --- a/ifchd/ifchd.c +++ b/ifchd/ifchd.c @@ -515,7 +515,7 @@ static void execute_list(int i) static int get_listen(void) { int lsock, ret; - struct sockaddr_un lsock_addr = + static const struct sockaddr_un lsock_addr = { .sun_family = AF_UNIX, .sun_path = "/var/state/ifchange" @@ -749,7 +749,7 @@ int main(int argc, char** argv) { while (1) { int option_index = 0; - static struct option long_options[] = { + static const struct option long_options[] = { {"detach", 0, 0, 'd'}, {"nodetach", 0, 0, 'n'}, {"pidfile", 1, 0, 'p'},