comparison pidgin/gtkmain.c @ 21015:787b3897ba9f

Patch from Andrew Gaul to constify a bunch of static variables to reduce the amount of writable memory +08108000 12K rwx-- /local/local/bin/pidgin -08107000 16K rwx-- /local/local/bin/pidgin +005bf000 20K rwx-- /local/local/lib/libpurple.so.0.2.1 -005be000 24K rwx-- /local/local/lib/libpurple.so.0.2.1
author Ka-Hing Cheung <khc@hxbc.us>
date Fri, 26 Oct 2007 04:59:23 +0000
parents 15f61e6b15cd
children 3cc856ca2338
comparison
equal deleted inserted replaced
21014:0314cb293463 21015:787b3897ba9f
90 90
91 /* 91 /*
92 * Lists of signals we wish to catch and those we wish to ignore. 92 * Lists of signals we wish to catch and those we wish to ignore.
93 * Each list terminated with -1 93 * Each list terminated with -1
94 */ 94 */
95 static int catch_sig_list[] = { 95 static const int catch_sig_list[] = {
96 SIGSEGV, 96 SIGSEGV,
97 SIGHUP, 97 SIGHUP,
98 SIGINT, 98 SIGINT,
99 SIGTERM, 99 SIGTERM,
100 SIGQUIT, 100 SIGQUIT,
101 SIGCHLD, 101 SIGCHLD,
102 SIGALRM, 102 SIGALRM,
103 -1 103 -1
104 }; 104 };
105 105
106 static int ignore_sig_list[] = { 106 static const int ignore_sig_list[] = {
107 SIGPIPE, 107 SIGPIPE,
108 -1 108 -1
109 }; 109 };
110 #endif 110 #endif
111 111