Ticket #243: 243b.diff

File 243b.diff, 48.2 KB (added by elfring, 15 years ago)

update suggestion

  • clientgui/res/macsnoozebadge.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *macsnoozebadge[] = {
     21static char const * macsnoozebadge[] = {
    2222/* width height ncolors chars_per_pixel */
    2323"128 128 6 1",
    2424/* colors */
  • clientgui/res/skins/default/graphic/workunit_gauge_progress_indicator_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_gauge_progress_indicator_image_xpm[] = {
     21static char const * workunit_gauge_progress_indicator_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"8 7 37 1",
    2424"@ c #26323F",
  • clientgui/res/skins/default/graphic/state_indicator_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *state_indicator_background_image_xpm[] = {
     21static char const * state_indicator_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"264 35 181 2",
    2424"h  c Black",
  • clientgui/res/skins/default/graphic/left_arrow_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *left_arrow_clicked_button_xpm[] = {
     21static char const * left_arrow_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"20 20 158 2",
    2424";. c #95BBB4",
  • clientgui/res/skins/default/graphic/resume_link_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *resume_link_image_xpm[] = {
     21static char const * resume_link_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"59 20 74 1",
    2424"H c #C4E2E4",
  • clientgui/res/skins/default/graphic/workunit_active_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_active_image_xpm[] = {
     21static char const * workunit_active_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"16 16 103 2",
    2424"Q  c #C8F6C9",
  • clientgui/res/skins/default/graphic/preferences_link_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *preferences_link_image_xpm[] = {
     21static char const * preferences_link_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"81 20 115 2",
    2424"&  c #9CC2D4",
  • clientgui/res/skins/default/graphic/cancel_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *cancel_button_xpm[] = {
     21static char const * cancel_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 83 1",
    2424"i c #44429C",
  • clientgui/res/skins/default/graphic/background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *background_image_xpm[] = {
     21static char const * background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"410 540 126 2",
    2424"q  c #E3FBBA",
  • clientgui/res/skins/default/graphic/workunit_animation_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_animation_background_image_xpm[] = {
     21static char const * workunit_animation_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"294 146 22 1",
    2424"O c Black",
  • clientgui/res/skins/default/graphic/advanced_link_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *advanced_link_image_xpm[] = {
     21static char const * advanced_link_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"101 20 108 2",
    2424"0  c #9CC2D4",
  • clientgui/res/skins/default/graphic/attach_project_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *attach_project_button_xpm[] = {
     21static char const * attach_project_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"81 18 235 2",
    2424"aX c #99B8D2",
  • clientgui/res/skins/default/graphic/connecting_indicator_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *connecting_indicator_image_xpm[] = {
     21static char const * connecting_indicator_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"14 15 14 1",
    2424"  c Black",
  • clientgui/res/skins/default/graphic/save_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *save_button_xpm[] = {
     21static char const * save_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 95 2",
    2424"k  c #44429C",
  • clientgui/res/skins/default/graphic/copy_all_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *copy_all_button_xpm[] = {
     21static char const * copy_all_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 114 2",
    2424"k  c #44429C",
  • clientgui/res/skins/default/graphic/cancel_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *cancel_clicked_button_xpm[] = {
     21static char const * cancel_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 84 1",
    2424"i c #44429C",
  • clientgui/res/skins/default/graphic/close_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *close_button_xpm[] = {
     21static char const * close_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 126 2",
    2424"f  c #44429C",
  • clientgui/res/skins/default/graphic/dialog_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *dialog_background_image_xpm[] = {
     21static char const * dialog_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"800 598 64 1",
    2424"l c #E5FBC3",
  • clientgui/res/skins/default/graphic/workunit_tab_area_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_tab_area_background_image_xpm[] = {
     21static char const * workunit_tab_area_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"343 24 221 2",
    2424"T. c #D4C6A4",
  • clientgui/res/skins/default/graphic/attach_project_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *attach_project_clicked_button_xpm[] = {
     21static char const * attach_project_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"81 18 235 2",
    2424"aX c #99B8D2",
  • clientgui/res/skins/default/graphic/copy_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *copy_button_xpm[] = {
     21static char const * copy_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 95 2",
    2424"g  c #44429C",
  • clientgui/res/skins/default/graphic/synchronize_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *synchronize_button_xpm[] = {
     21static char const * synchronize_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"81 18 187 2",
    2424"Q. c #4C53A7",
  • clientgui/res/skins/default/graphic/save_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *save_clicked_button_xpm[] = {
     21static char const * save_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 90 1",
    2424"k c #44429C",
  • clientgui/res/skins/default/graphic/project_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *project_image_xpm[] = {
     21static char const * project_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"40 40 205 2",
    2424"!  c #E4C137",
  • clientgui/res/skins/default/graphic/copy_all_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *copy_all_clicked_button_xpm[] = {
     21static char const * copy_all_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 113 2",
    2424"k  c #44429C",
  • clientgui/res/skins/default/graphic/messages_alert_link_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *messages_alert_link_image_xpm[] = {
     21static char const * messages_alert_link_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"70 20 157 2",
    2424"y. c #CC5A6C",
  • clientgui/res/skins/default/graphic/close_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *close_clicked_button_xpm[] = {
     21static char const * close_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 122 2",
    2424"f  c #44429C",
  • clientgui/res/skins/default/graphic/spacer_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *spacer_image_xpm[] = {
     21static char const * spacer_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"2 11 8 1",
    2424"  c Black",
  • clientgui/res/skins/default/graphic/right_arrow_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *right_arrow_button_xpm[] = {
     21static char const * right_arrow_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"20 20 201 2",
    2424"w  c #578887",
  • clientgui/res/skins/default/graphic/copy_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *copy_clicked_button_xpm[] = {
     21static char const * copy_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"82 18 93 2",
    2424"g  c #44429C",
  • clientgui/res/skins/default/graphic/help_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *help_button_xpm[] = {
     21static char const * help_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"18 18 58 1",
    2424"0 c #6370B5",
  • clientgui/res/skins/default/graphic/workunit_animation_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_animation_image_xpm[] = {
     21static char const * workunit_animation_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"260 61 128 2",
    2424"   c Black",
  • clientgui/res/skins/default/graphic/synchronize_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *synchronize_clicked_button_xpm[] = {
     21static char const * synchronize_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"81 18 242 2",
    2424"kX c #99B8D2",
  • clientgui/res/skins/default/graphic/messages_link_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *messages_link_image_xpm[] = {
     21static char const * messages_link_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"70 20 138 2",
    2424"e  c #9CC2D4",
  • clientgui/res/skins/default/graphic/error_indicator_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *error_indicator_image_xpm[] = {
     21static char const * error_indicator_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"69 20 46 1",
    2424"  c Black",
  • clientgui/res/skins/default/graphic/workunit_gauge_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_gauge_background_image_xpm[] = {
     21static char const * workunit_gauge_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"258 18 116 2",
    2424"Q  c #BADDE2",
  • clientgui/res/skins/default/graphic/workunit_suspended_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_suspended_image_xpm[] = {
     21static char const * workunit_suspended_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"16 16 103 2",
    2424"Q  c #C8F6C9",
  • clientgui/res/skins/default/graphic/project_area_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *project_area_background_image_xpm[] = {
     21static char const * project_area_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"343 113 32 1",
    2424"@ c #B8E0E4",
  • clientgui/res/skins/default/graphic/left_arrow_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *left_arrow_button_xpm[] = {
     21static char const * left_arrow_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"20 20 157 2",
    2424"h. c #709F9C",
  • clientgui/res/skins/default/graphic/suspend_link_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *suspend_link_image_xpm[] = {
     21static char const * suspend_link_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"59 20 71 1",
    2424"r c #C4E2E4",
  • clientgui/res/skins/default/graphic/right_arrow_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *right_arrow_clicked_button_xpm[] = {
     21static char const * right_arrow_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"20 20 208 2",
    2424"C  c #90B7B1",
  • clientgui/res/skins/default/graphic/help_clicked_button.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *help_clicked_button_xpm[] = {
     21static char const * help_clicked_button_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"18 18 58 1",
    2424"0 c #6370B5",
  • clientgui/res/skins/default/graphic/workunit_area_background_image.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *workunit_area_background_image_xpm[] = {
     21static char const * workunit_area_background_image_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"343 314 32 1",
    2424". c #333399",
  • clientgui/res/macbadgemask.xpm

     
    1616// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
    1717
    1818/* XPM */
    19 static char *macbadgemask[] = {
     19static char const * macbadgemask[] = {
    2020/* width height ncolors chars_per_pixel */
    2121"128 128 6 1",
    2222/* colors */
  • clientgui/res/warning.xpm

     
    11/* XPM */
    2 static char *warning_xpm[] = {
     2static char const * warning_xpm[] = {
    33/* columns rows colors chars-per-pixel */
    44"48 48 9 1",
    55"@ c Black",
  • clientgui/res/gridrepublic32.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *gridrepublic32_xpm[] = {
     21static char const * gridrepublic32_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"32 32 212 2",
    2424":. c #3C4248",
  • clientgui/res/gridrepublic16.xpm

     
    1818// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    1919
    2020/* XPM */
    21 static char *gridrepublic16_xpm[] = {
     21static char const * gridrepublic16_xpm[] = {
    2222/* columns rows colors chars-per-pixel */
    2323"16 16 158 2",
    2424"s. c Black",
  • clientgui/res/macdisconnectbadge.xpm

     
    1616// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
    1717
    1818/* XPM */
    19 static char *macdisconnectbadge[] = {
     19static char const * macdisconnectbadge[] = {
    2020/* width height ncolors chars_per_pixel */
    2121"128 128 7 1",
    2222/* colors */
  • clientgui/common/wxFlatNotebookImages.h

     
    2525        // Images used by the control
    2626        ////////////////////////////////////////////////////////////
    2727        /* XPM */
    28         static char *left_arrow_disabled_xpm[] = {
     28        static char const * left_arrow_disabled_xpm[] = {
    2929                /* width height num_colors chars_per_pixel */
    3030                "    16    16        8            1",
    3131                        /* colors */
     
    5757        };
    5858
    5959        /* XPM */
    60         static char *x_button_pressed_xpm[] = {
     60        static char const * x_button_pressed_xpm[] = {
    6161                /* width height num_colors chars_per_pixel */
    6262                "    16    16        8            1",
    6363                        /* colors */
     
    9090
    9191
    9292        /* XPM */
    93         static char *left_arrow_xpm[] = {
     93        static char const * left_arrow_xpm[] = {
    9494                /* width height num_colors chars_per_pixel */
    9595                "    16    16        8            1",
    9696                        /* colors */
     
    122122        };
    123123
    124124        /* XPM */
    125         static char *x_button_hilite_xpm[] = {
     125        static char const * x_button_hilite_xpm[] = {
    126126                /* width height num_colors chars_per_pixel */
    127127                "    16    16        8            1",
    128128                        /* colors */
     
    154154        };
    155155
    156156        /* XPM */
    157         static char *x_button_xpm[] = {
     157        static char const * x_button_xpm[] = {
    158158                /* width height num_colors chars_per_pixel */
    159159                "    16    16        8            1",
    160160                        /* colors */
     
    186186        };
    187187
    188188        /* XPM */
    189         static char *left_arrow_pressed_xpm[] = {
     189        static char const * left_arrow_pressed_xpm[] = {
    190190                /* width height num_colors chars_per_pixel */
    191191                "    16    16        8            1",
    192192                        /* colors */
     
    218218        };
    219219
    220220        /* XPM */
    221         static char *left_arrow_hilite_xpm[] = {
     221        static char const * left_arrow_hilite_xpm[] = {
    222222                /* width height num_colors chars_per_pixel */
    223223                "    16    16        8            1",
    224224                        /* colors */
     
    250250        };
    251251
    252252        /* XPM */
    253         static char *right_arrow_disabled_xpm[] = {
     253        static char const * right_arrow_disabled_xpm[] = {
    254254                /* width height num_colors chars_per_pixel */
    255255                "    16    16        8            1",
    256256                        /* colors */
     
    282282        };
    283283
    284284        /* XPM */
    285         static char *right_arrow_hilite_xpm[] = {
     285        static char const * right_arrow_hilite_xpm[] = {
    286286                /* width height num_colors chars_per_pixel */
    287287                "    16    16        8            1",
    288288                        /* colors */
     
    314314        };
    315315
    316316        /* XPM */
    317         static char *right_arrow_pressed_xpm[] = {
     317        static char const * right_arrow_pressed_xpm[] = {
    318318                /* width height num_colors chars_per_pixel */
    319319                "    16    16        8            1",
    320320                        /* colors */
     
    347347
    348348
    349349        /* XPM */
    350         static char *right_arrow_xpm[] = {
     350        static char const * right_arrow_xpm[] = {
    351351                /* width height num_colors chars_per_pixel */
    352352                "    16    16        8            1",
    353353                        /* colors */
     
    381381        const int tab_x_size = 9;
    382382
    383383        /* XPM */
    384         static char *tab_x_button_pressed_xpm[] = {
     384        static char const * tab_x_button_pressed_xpm[] = {
    385385                /* width height num_colors chars_per_pixel */
    386386                "     9     9        8            1",
    387387                        /* colors */
     
    406406        };
    407407
    408408        /* XPM */
    409         static char *tab_x_button_xpm[] = {
     409        static char const * tab_x_button_xpm[] = {
    410410                /* width height num_colors chars_per_pixel */
    411411                "     9     9        8            1",
    412412                        /* colors */
     
    431431        };
    432432
    433433        /* XPM */
    434         static char *tab_x_button_hilite_xpm[] = {
     434        static char const * tab_x_button_hilite_xpm[] = {
    435435                /* width height num_colors chars_per_pixel */
    436436                "     9     9        8            1",
    437437                        /* colors */
  • client/client_msgs.h

     
    4545
    4646extern std::deque<MESSAGE_DESC*> message_descs;
    4747extern void record_message(class PROJECT *p, int priority, int now, char* msg);
    48 extern void show_message(class PROJECT *p, char* message, int priority);
     48extern void show_message(class PROJECT* p, char const * message, int priority);
    4949
    5050// the __attribute((format...)) tags are GCC extensions that let the compiler
    5151// do like-checking on printf-like arguments
  • client/scheduler_op.h

     
    9090struct USER_MESSAGE {
    9191    std::string message;
    9292    std::string priority;
    93     USER_MESSAGE(char*, char*);
     93    USER_MESSAGE(char const * m , char const * p);
    9494};
    9595
    9696struct SCHEDULER_REPLY {
  • client/file_names.cpp

     
    252252    dir_close(dirp);
    253253}
    254254
    255 void get_account_filename(char* master_url, char* path) {
     255void get_account_filename(char const * master_url, char* path) {
    256256    char buf[1024];
    257257    escape_project_url(master_url, buf);
    258258    sprintf(path, "account_%s.xml", buf);
     
    306306    return true;
    307307}
    308308
    309 void get_statistics_filename(char* master_url, char* path) {
     309void get_statistics_filename(char const * master_url, char* path) {
    310310    char buf[256];
    311311    escape_project_url(master_url, buf);
    312312    sprintf(path, "statistics_%s.xml", buf);
  • client/sim.h

     
    277277    void make_job(SIM_PROJECT*, WORKUNIT*, RESULT*);
    278278    void handle_completed_results();
    279279    void get_workload(vector<IP_RESULT>&);
    280     int parse_projects(char*);
    281     int parse_host(char*);
     280    int parse_projects(char const *);
     281    int parse_host(char const *);
    282282    void simulate();
    283283    bool scheduler_rpc_poll();
    284284    bool simulate_rpc(PROJECT*);
  • client/file_names.h

     
    3838extern int remove_project_dir(PROJECT&);
    3939extern int make_slot_dir(int);
    4040extern void delete_old_slot_dirs();
    41 extern void get_account_filename(char* master_url, char* path);
     41extern void get_account_filename(char const * master_url, char* path);
    4242extern bool is_account_file(const char*);
    4343extern bool is_statistics_file(const char*);
    44 extern void get_statistics_filename(char* master_url, char* path);
     44extern void get_statistics_filename(char const * master_url, char* path);
    4545extern bool is_image_file(const char*);
    4646
    4747extern void get_sched_request_filename(PROJECT&, char*, int len);
  • client/main.cpp

     
    9191// Display a message to the user.
    9292// Depending on the priority, the message may be more or less obtrusive
    9393//
    94 void show_message(PROJECT *p, char* msg, int priority) {
     94void show_message(PROJECT* p, char const * msg, int priority) {
    9595    const char* x;
    9696    char message[1024];
    9797    time_t now = time(0);
  • client/sim_util.cpp

     
    6464
    6565int CLIENT_STATE::report_result_error(RESULT& , const char* , ...) {return 0;}
    6666
    67 void show_message(PROJECT *p, char* msg, int priority) {
     67void show_message(PROJECT* p, char const * msg, int priority) {
    6868    const char* x;
    6969    char message[1024];
    7070    char* time_string = time_to_string(gstate.now);
     
    514514    return ERR_XML_PARSE;
    515515}
    516516
    517 int CLIENT_STATE::parse_projects(char* name) {
     517int CLIENT_STATE::parse_projects(char const * name) {
    518518    char tag[256];
    519519    bool is_tag;
    520520    MIOFILE mf;
     
    545545    return ERR_XML_PARSE;
    546546}
    547547
    548 int CLIENT_STATE::parse_host(char* name) {
     548int CLIENT_STATE::parse_host(char const * name) {
    549549    MIOFILE mf;
    550550
    551551    FILE* f = fopen(name, "r");
     
    560560    return 0;
    561561}
    562562
    563 bool boinc_is_finite(double x) {
    564 #if defined (HPUX_SOURCE)
    565     return _Isfinite(x);
    566     return false;
    567 #else
    568     return finite(x);
    569 #endif
    570 }
     563bool boinc_is_finite(double x) {
     564#if defined (HPUX_SOURCE)
     565    return _Isfinite(x);
     566    return false;
     567#else
     568    return finite(x);
     569#endif
     570}
  • client/scheduler_op.cpp

     
    846846    return ERR_XML_PARSE;
    847847}
    848848
    849 USER_MESSAGE::USER_MESSAGE(char* m, char* p) {
    850     message = m;
    851     priority = p;
     849USER_MESSAGE::USER_MESSAGE(char const * m , char const * p)
     850 : message(m), priority(p) {
    852851}
    853852
    854 const char *BOINC_RCSID_11c806525b = "$Id$";
     853const char BOINC_RCSID_11c806525b[] = "$Id$";
  • db/boinc_db.cpp

     
    15541554    file_delete_state = atoi(r[i++]);
    15551555}
    15561556
    1557 int DB_SCHED_RESULT_ITEM_SET::add_result(char* result_name) {
     1557int DB_SCHED_RESULT_ITEM_SET::add_result(char const * result_name) {
    15581558    SCHED_RESULT_ITEM result;
    15591559    result.id = 0;
    15601560    strcpy2(result.queried_name, result_name);
     
    16251625    return 0;
    16261626}
    16271627
    1628 int DB_SCHED_RESULT_ITEM_SET::lookup_result(char* result_name, SCHED_RESULT_ITEM** rip) {
     1628int DB_SCHED_RESULT_ITEM_SET::lookup_result(char const * result_name, SCHED_RESULT_ITEM** rip) {
    16291629    unsigned int i;
    16301630    for (i=0; i<results.size(); i++) {
    16311631        if (!strcmp(results[i].name, result_name)) {
  • db/db_base.cpp

     
    3939    mysql = 0;
    4040}
    4141
    42 int DB_CONN::open(char* db_name, char* db_host, char* db_user, char* dbpassword) {
     42int DB_CONN::open(char const * db_name,
     43                  char const * db_host,
     44                  char const * db_user,
     45                  char const * dbpassword) {
    4346    mysql = mysql_init(0);
    4447    if (!mysql) return ERR_DB_CANT_INIT;
    4548#if MYSQL_VERSION_ID >= 50106
  • db/boinc_db.h

     
    824824    DB_SCHED_RESULT_ITEM_SET(DB_CONN* p=0);
    825825    std::vector<SCHED_RESULT_ITEM> results;
    826826
    827     int add_result(char* result_name);
     827    int add_result(char const * result_name);
    828828
    829829    int enumerate();
    830830        // using a single SQL query, look up all the reported results,
    831831        // (based on queried_name)
    832832        // and fill in the rest of the entries in the results vector
    833833
    834     int lookup_result(char* result_name, SCHED_RESULT_ITEM** result);
     834    int lookup_result(char const * result_name, SCHED_RESULT_ITEM** result);
    835835
    836836    int update_result(SCHED_RESULT_ITEM& result);
    837837    int update_workunits();
  • db/db_base.h

     
    6767class DB_CONN {
    6868public:
    6969    DB_CONN();
    70     int open(char* name, char* host, char* user, char* passwd);
     70    int open(char const * name,
     71             char const * host,
     72             char const * user,
     73             char const * passwd);
    7174    int set_isolation_level(ISOLATION_LEVEL);
    7275    int do_query(const char*);
    7376    int affected_rows();
  • lib/str_util.h

     
    3838extern void unescape_url(std::string& url);
    3939extern void unescape_url(char *url);
    4040extern void escape_url(std::string& url);
    41 extern void escape_url(char *in, char*out);
    42 extern void escape_url_readable(char* in, char* out);
    43 extern void escape_project_url(char *in, char* out);
    44 extern bool valid_master_url(char*);
     41extern void escape_url(char const * in, char* out);
     42extern void escape_url_readable(char const * in, char* out);
     43extern void escape_project_url(char const * in, char* out);
     44extern bool valid_master_url(char const* buf);
    4545extern void canonicalize_master_url(char *url);
    4646extern void canonicalize_master_url(std::string&);
    4747#define safe_strcpy(x, y) strlcpy(x, y, sizeof(x))
  • lib/str_util.cpp

     
    294294    return argc;
    295295}
    296296
    297 static char x2c(char *what) {
     297static char x2c(char const * what) {
    298298    register char digit;
    299299
    300300    digit = (what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 : (what[0] - '0'));
     
    389389    url = buf;
    390390}
    391391
    392 void escape_url(char *in, char*out) {
     392void escape_url(char const * in, char* out) {
    393393    int x, y;
    394394    for (x=0, y=0; in[x]; ++x) {
    395395        if (isalnum(in[x])) {
     
    440440// Escape a URL for the project directory, cutting off the "http://",
    441441// converting everthing other than alphanumbers, ., - and _ to "_".
    442442//
    443 void escape_url_readable(char *in, char* out) {
     443void escape_url_readable(char const * in, char* out) {
    444444    int x, y;
    445445    char *temp;
    446446
     
    500500
    501501// is the string a valid master URL, in canonical form?
    502502//
    503 bool valid_master_url(char* buf) {
     503bool valid_master_url(char const * buf) {
    504504    char* p, *q;
    505505    size_t n;
    506506        bool bSSL = false;
     
    591591    return buf;
    592592}
    593593
    594 void escape_project_url(char *in, char* out) {
     594void escape_project_url(char const * in, char* out) {
    595595    escape_url_readable(in, out);
    596596    char& last = out[strlen(out)-1];
    597597    // remove trailing _
     
    879879    return retval;
    880880}
    881881
    882 const char *BOINC_RCSID_ab90e1e = "$Id$";
     882const char BOINC_RCSID_ab90e1e[] = "$Id$";
  • lib/filesys.cpp

     
    718718// get total and free space on current filesystem (in bytes)
    719719//
    720720#ifdef _WIN32
    721 int get_filesystem_info(double &total_space, double &free_space, char*) {
     721int get_filesystem_info(double &total_space, double &free_space, char const *) {
    722722    char buf[256];
    723723    boinc_getcwd(buf);
    724724    FreeFn pGetDiskFreeSpaceEx;
     
    751751        total_space = (double)dwTotalClusters * dwSectPerClust * dwBytesPerSect;
    752752    }
    753753#else
    754 int get_filesystem_info(double &total_space, double &free_space, char* path) {
     754int get_filesystem_info(double &total_space, double &free_space, char const * path) {
    755755#ifdef STATFS
    756756    struct STATFS fs_info;
    757757
     
    772772
    773773#ifndef _WIN32
    774774
    775 int get_file_dir(char* filename, char* dir) {
     775int get_file_dir(char const * filename, char* dir) {
    776776    char buf[8192], *p, path[256];
    777777    struct stat sbuf;
    778778    int retval;
     
    797797
    798798#endif
    799799
    800 const char *BOINC_RCSID_636c8d709b = "$Id$";
     800const char BOINC_RCSID_636c8d709b[] = "$Id$";
  • lib/app_ipc.h

     
    236236} // extern "C" {
    237237#endif
    238238
    239 extern void url_to_project_dir(char* url, char* dir);
     239extern void url_to_project_dir(char const * url, char* dir);
    240240
    241241#endif
    242242
  • lib/synch.cpp

     
    105105    return 0;
    106106}
    107107
    108 int get_key(char* path, int id, key_t& key) {
     108int get_key(char const * path, int id, key_t& key) {
    109109    key = ftok(path, id);
    110110    if (key == (key_t)-1) return ERR_FTOK;
    111111    return 0;
    112112}
    113113
    114 const char *BOINC_RCSID_9412b586d1 = "$Id$";
     114const char BOINC_RCSID_9412b586d1[] = "$Id$";
  • lib/app_ipc.cpp

     
    403403    return 0;
    404404}
    405405
    406 void url_to_project_dir(char* url, char* dir) {
     406void url_to_project_dir(char const * url, char* dir) {
    407407    char buf[256];
    408408    escape_project_url(url, buf);
    409409    sprintf(dir, "%s/%s", PROJECT_DIR, buf);
  • lib/filesys.h

     
    6969extern int file_size(const char*, double&);
    7070extern int clean_out_dir(const char*);
    7171extern int dir_size(const char* dirpath, double&, bool recurse=true);
    72 extern int get_filesystem_info(double& total, double& free, char* path=const_cast<char *>("."));
     72extern int get_filesystem_info(double& total, double& free, char const * path = ".");
    7373
    7474// TODO TODO TODO
    7575// remove this code - the DirScanner class does the same thing.
     
    123123
    124124// search PATH, find the directory that a program is in, if any
    125125//
    126 extern int get_file_dir(char* filename, char* dir);
     126extern int get_file_dir(char const * filename, char* dir);
    127127
    128128#endif
    129129
  • lib/synch.h

     
    2424extern int destroy_semaphore(key_t);
    2525extern int lock_semaphore(key_t);
    2626extern int unlock_semaphore(key_t);
    27 extern int get_key(char* path, int id, key_t&);
     27extern int get_key(char const * path, int id, key_t&);
    2828
    2929#endif
  • api/boinc_api.cpp

     
    8585// Unless otherwise noted, "CPU time" refers to the sum over all episodes
    8686// (not counting the part after the last checkpoint in an episode).
    8787
    88 const char* api_version="API_VERSION_"PACKAGE_VERSION;
     88char const api_version[] = "API_VERSION_" PACKAGE_VERSION;
    8989static APP_INIT_DATA aid;
    9090static FILE_LOCK file_lock;
    9191APP_CLIENT_SHM* app_client_shm = 0;
     
    167167static void block_sigalrm();
    168168static int start_worker_signals();
    169169
    170 char* boinc_msg_prefix() {
     170char const * const boinc_msg_prefix() {
    171171    static char sbuf[256];
    172172    char buf[256];
    173173
     
    806806    int pid;
    807807#endif
    808808    GRAPHICS_APP(bool f) {fullscreen=f;}
    809     void run(char* path) {
     809    void run(char const * path) {
    810810        int argc;
    811811        char* argv[4];
    812812        char abspath[1024];
     
    11271127}
    11281128#endif
    11291129
    1130 int boinc_send_trickle_up(char* variety, char* p) {
     1130int boinc_send_trickle_up(char const * variety, char const * p) {
    11311131    if (!options.handle_trickle_ups) return ERR_NO_OPTION;
    11321132    FILE* f = boinc_fopen(TRICKLE_UP_FILENAME, "wb");
    11331133    if (!f) return ERR_FOPEN;
  • api/texfont.cpp

     
    159159}
    160160
    161161
    162 static char *lastError;
     162static char const * lastError = "";
    163163
    164164
    165 char * txfErrorString(void) {
     165char const * const txfErrorString(void) {
    166166        return lastError;
    167167}
    168168
  • api/reduce_lib.cpp

     
    454454
    455455        float w;
    456456
    457         const char* x_label = "Time";
     457        char const x_label[] = "Time";
    458458#if 0
    459459        char* y_label = "Frequency";
    460460        char* y_begin_label = "0";
  • api/mac_icon.cpp

     
    5252    return(e); } }
    5353
    5454// Adds the specified resource to the file given as an argument.
    55 int setMacRsrcForFile(char *filename, char *rsrcData, long rsrcSize,
     55int setMacRsrcForFile(char const * filename, char *rsrcData, long rsrcSize,
    5656                            OSType rsrcType, int rsrcID, StringPtr rsrcName) {
    5757    OSErr oserr;                    /* stores an OS error code */
    5858//    FSSpec fsspec;                  /* FileSpec */
     
    207207// Adds icns resource to the file given as an argument.
    208208// If the file is a soft link, also adds icns resource to the resolved flle.
    209209// Typically called from a main() with argv[0] to attach resources to itself */
    210 int setMacIcon(char *filename, char *iconData, long iconSize) {
     210int setMacIcon(char const * filename, char* iconData, long iconSize) {
    211211    char path[1024];
    212212    StringPtr rsrcName = (StringPtr)"\pApplication icons";
    213213
     
    215215    boinc_resolve_filename(filename, path, sizeof(path));
    216216    return(setMacRsrcForFile(path, iconData, iconSize, 'icns', RESIDICON, rsrcName));
    217217}
    218 const char *BOINC_RCSID_112a101526="$Id$";
     218const char BOINC_RCSID_112a101526[] = "$Id$";
  • api/boinc_api.h

     
    7575extern int boinc_resolve_filename(const char*, char*, int len);
    7676extern int boinc_get_init_data_p(struct APP_INIT_DATA*);
    7777extern int boinc_parse_init_data_file(void);
    78 extern int boinc_send_trickle_up(char* variety, char* text);
     78extern int boinc_send_trickle_up(char const * variety, char const * text);
    7979extern int boinc_checkpoint_completed(void);
    8080extern int boinc_fraction_done(double);
    8181extern int boinc_suspend_other_activities(void);
     
    102102
    103103#ifdef __APPLE__
    104104extern int setMacPList(void);
    105 extern int setMacIcon(char *filename, char *iconData, long iconSize);
     105extern int setMacIcon(char const * filename, char* iconData, long iconSize);
    106106#endif
    107107
    108108#ifdef __cplusplus
     
    120120extern int boinc_upload_file(std::string& name);
    121121extern int boinc_upload_status(std::string& name);
    122122extern int boinc_write_init_data_file(APP_INIT_DATA&);
    123 extern char* boinc_msg_prefix();
     123extern char const * const boinc_msg_prefix();
    124124extern int suspend_activities();   // deprecated
    125125extern int resume_activities();    // deprecated
    126126extern int restore_activities();    //deprecated
  • api/texfont.h

     
    6161        TexGlyphVertexInfo **lut;
    6262} TexFont;
    6363
    64 extern char *txfErrorString(void);
     64extern char const * const txfErrorString(void);
    6565
    6666extern TexFont *txfLoadFont(const char *filename);
    6767