Mercurial > emacs
comparison src/process.c @ 105959:ba3ffbd9c422
* process.c (ifflag_def): Make flag_sym constant.
(Fnetwork_interface_info): Use a constant pointer.
(ifflag_table):
* xfns.c (cursor_bits):
* xdisp.c (power_letter):
* termcap.c (speeds, esctab):
* sysdep.c (baud_convert):
* keyboard.c (lispy_accent_codes, modifier_names):
* image.c (xbm_format, xpm_format, pbm_format, png_format)
(jpeg_format, tiff_format, gif_format, svg_format)
(interlace_start, interlace_increment, gs_format):
* gtkutil.c (separator_names):
* fringe.c (swap_nibble):
* fns.c (base64_value_to_char, base64_char_to_value):
* fileio.c (make_temp_name_tbl):
* coding.c (suffixes): Make constant.
| author | Dan Nicolaescu <dann@ics.uci.edu> |
|---|---|
| date | Wed, 11 Nov 2009 20:11:51 +0000 |
| parents | 45191c90be7e |
| children | f2cea199b0c4 |
comparison
equal
deleted
inserted
replaced
| 105958:341a779db1d0 | 105959:ba3ffbd9c422 |
|---|---|
| 3978 | 3978 |
| 3979 #if defined(SIOCGIFADDR) || defined(SIOCGIFHWADDR) || defined(SIOCGIFFLAGS) | 3979 #if defined(SIOCGIFADDR) || defined(SIOCGIFHWADDR) || defined(SIOCGIFFLAGS) |
| 3980 | 3980 |
| 3981 struct ifflag_def { | 3981 struct ifflag_def { |
| 3982 int flag_bit; | 3982 int flag_bit; |
| 3983 char *flag_sym; | 3983 const char *flag_sym; |
| 3984 }; | 3984 }; |
| 3985 | 3985 |
| 3986 static struct ifflag_def ifflag_table[] = { | 3986 static const struct ifflag_def ifflag_table[] = { |
| 3987 #ifdef IFF_UP | 3987 #ifdef IFF_UP |
| 3988 { IFF_UP, "up" }, | 3988 { IFF_UP, "up" }, |
| 3989 #endif | 3989 #endif |
| 3990 #ifdef IFF_BROADCAST | 3990 #ifdef IFF_BROADCAST |
| 3991 { IFF_BROADCAST, "broadcast" }, | 3991 { IFF_BROADCAST, "broadcast" }, |
| 4077 elt = Qnil; | 4077 elt = Qnil; |
| 4078 #if defined(SIOCGIFFLAGS) && defined(HAVE_STRUCT_IFREQ_IFR_FLAGS) | 4078 #if defined(SIOCGIFFLAGS) && defined(HAVE_STRUCT_IFREQ_IFR_FLAGS) |
| 4079 if (ioctl (s, SIOCGIFFLAGS, &rq) == 0) | 4079 if (ioctl (s, SIOCGIFFLAGS, &rq) == 0) |
| 4080 { | 4080 { |
| 4081 int flags = rq.ifr_flags; | 4081 int flags = rq.ifr_flags; |
| 4082 struct ifflag_def *fp; | 4082 const struct ifflag_def *fp; |
| 4083 int fnum; | 4083 int fnum; |
| 4084 | 4084 |
| 4085 any++; | 4085 any++; |
| 4086 for (fp = ifflag_table; flags != 0 && fp->flag_sym; fp++) | 4086 for (fp = ifflag_table; flags != 0 && fp->flag_sym; fp++) |
| 4087 { | 4087 { |
