comparison packages/net/httpd/current/src/monitor.c @ 1053:657f409c5dfe

* src/httpd.c: Fixed a problem with closing the client socket -- it was being done twice. Tidied up the formatting a little. * src/monitor.c: Fixed some compiler warnings.
author nickg
date Sat, 14 Jun 2003 18:04:55 +0000
parents 4ca8a5f30c03
children 921f9882bd6d
comparison
equal deleted inserted replaced
1052:ee5b3444e088 1053:657f409c5dfe
168 * A simple introductory page matching "/monitor" and 168 * A simple introductory page matching "/monitor" and
169 * "/monitor/index.html". 169 * "/monitor/index.html".
170 */ 170 */
171 171
172 static char monitor_index_blurb[] = 172 static char monitor_index_blurb[] =
173 "<p>This is the eCos System Monitor. It presents a simple web monitor 173 "<p>This is the eCos System Monitor. It presents a simple web monitor"
174 and control interface for eCos systems.\n" 174 "and control interface for eCos systems.\n"
175 "<p>Use the navigation bar at the bottom of each page to explore." 175 "<p>Use the navigation bar at the bottom of each page to explore."
176 ; 176 ;
177 177
178 static cyg_bool cyg_monitor_index( FILE * client, char *filename, 178 static cyg_bool cyg_monitor_index( FILE * client, char *filename,
179 char *formdata, void *arg ) 179 char *formdata, void *arg )
319 * A page on which the thread's state may be edited. This tests forms 319 * A page on which the thread's state may be edited. This tests forms
320 * handling. 320 * handling.
321 */ 321 */
322 322
323 static char thread_edit_blurb[] = 323 static char thread_edit_blurb[] =
324 "<p>This table contains an entry for each property of the thread 324 "<p>This table contains an entry for each property of the thread"
325 that you can edit. The properties are:\n" 325 "that you can edit. The properties are:\n"
326 "<p><b>State:</b> Change thread's state. The <em>Suspend</em> button 326 "<p><b>State:</b> Change thread's state. The <em>Suspend</em> button"
327 will suspend the thread. The <em>Run</em> button will undo any previous 327 "will suspend the thread. The <em>Run</em> button will undo any previous"
328 suspends. The <em>Release</em> button will release the thread out of 328 "suspends. The <em>Release</em> button will release the thread out of"
329 any sleep it is currently in.\n" 329 "any sleep it is currently in.\n"
330 "<p><b>Priority:</b> Change the thread's priority.\n" 330 "<p><b>Priority:</b> Change the thread's priority.\n"
331 "<p>Once the new state has been selected, press the <em>Submit</em> 331 "<p>Once the new state has been selected, press the <em>Submit</em>"
332 button to make the change, or <em>Reset</em> to clear it." 332 "button to make the change, or <em>Reset</em> to clear it."
333 ; 333 ;
334 334
335 static cyg_bool cyg_monitor_thread_edit( FILE * client, char *filename, 335 static cyg_bool cyg_monitor_thread_edit( FILE * client, char *filename,
336 char *formdata, void *arg ) 336 char *formdata, void *arg )
337 { 337 {
1178 static cyg_uint32 instrument_flags[(CYG_INSTRUMENT_CLASS_MAX>>8)+1]; 1178 static cyg_uint32 instrument_flags[(CYG_INSTRUMENT_CLASS_MAX>>8)+1];
1179 1179
1180 #endif 1180 #endif
1181 1181
1182 static char cyg_monitor_instrument_blurb1[] = 1182 static char cyg_monitor_instrument_blurb1[] =
1183 "<p>Use the checkboxes to enable the events to be recorded. Click 1183 "<p>Use the checkboxes to enable the events to be recorded. Click"
1184 the <em>Submit</em> button to start recording. Click the <em>Clear</em> 1184 "the <em>Submit</em> button to start recording. Click the <em>Clear</em>"
1185 button to clear all instrumentation and to stop recording." 1185 "button to clear all instrumentation and to stop recording."
1186 ; 1186 ;
1187 1187
1188 static cyg_bool cyg_monitor_instrument( FILE * client, char *filename, 1188 static cyg_bool cyg_monitor_instrument( FILE * client, char *filename,
1189 char *formdata, void *arg ) 1189 char *formdata, void *arg )
1190 { 1190 {