Changeset 32016


Ignore:
Timestamp:
May 12, 2017, 8:47:36 AM (2 weeks ago)
Author:
brainslayer
Message:

its not required to pass the string through all layers. we can just parse it one time and use a definition for later checks

Location:
src/router
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/ej.c

    r32000 r32016  
    326326}
    327327
    328 void do_ej(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)  // jimmy, https, 8/4/2003
     328void do_ej(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)  // jimmy, https, 8/4/2003
    329329{
    330330        FILE *fp = NULL;
  • src/router/httpd/httpd.c

    r32015 r32016  
    514514void
    515515//do_file(char *path, FILE *stream)
    516 do_file(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)     //jimmy, https, 8/4/2003
     516do_file(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)     //jimmy, https, 8/4/2003
    517517{
    518518
  • src/router/httpd/httpd.h

    r32015 r32016  
    6868        char *extra_header;
    6969        void (*input) (char *path, webs_t stream, int len, char *boundary);
    70         void (*output) (char *method, struct mime_handler * handler, char *path, webs_t stream, char *query);
     70        void (*output) (unsigned char method, struct mime_handler * handler, char *path, webs_t stream, char *query);
    7171        int (*auth) (webs_t wp, char *userid, char *passwd, char *realm, char *authorisation, int (*auth_check) (char *userid, char *passwd, char *dirname, char *authorisation));
    7272        unsigned char send_headers;
     
    7474};
    7575
    76 #define METHOD_INVALID 0L
    77 #define METHOD_GET 1L
    78 #define METHOD_POST 2L
    79 #define METHOD_OPTIONS 3L
     76#define METHOD_INVALID 0
     77#define METHOD_GET 1
     78#define METHOD_POST 2
     79#define METHOD_OPTIONS 3
    8080
    8181typedef struct {
     
    9595
    9696/* Regular file handler */
    97 extern void do_file(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query);
     97extern void do_file(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query);
    9898extern void do_file_attach(struct mime_handler *handler, char *path, webs_t stream, char *query, char *attachment);
    9999
     
    140140
    141141#define websSetVar(wp, var, value) set_cgi(var, value)
    142 #define websDefaultHandler(wp, urlPrefix, webDir, arg, url, path, query) ({ do_ej(method, path, wp,""); fflush(wp); 1; })
     142#define websDefaultHandler(wp, urlPrefix, webDir, arg, url, path, query) ({ do_ej(METHOD_GET, path, wp,""); fflush(wp); 1; })
    143143#define websWriteData(wp, buf, nChars) ({ int TMPVAR = wfwrite(buf, 1, nChars, wp); wfflush(wp); TMPVAR; })
    144144#define websWriteDataNonBlock websWriteData
     
    152152extern FILE *getWebsFile(char *path);
    153153extern int ejArgs(int argc, char_t ** argv, char_t * fmt, ...);
    154 extern void do_ej(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query);
     154extern void do_ej(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query);
    155155extern void do_ej_buffer(char *buffer, webs_t stream);
    156156extern int websWrite(webs_t wp, char *fmt, ...);
  • src/router/httpd/modules/base.c

    r32015 r32016  
    7272char *live_translate(const char *tran);
    7373#ifdef HAVE_BUFFALO
    74 void do_vsp_page(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query);
     74void do_vsp_page(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query);
    7575#endif
    7676/*
     
    437437
    438438/* bigfile.bin download method used for benchmarking. use http://x.x.x.x/bigfile.bin?size=FILESIZE to request any filesize you want */
    439 static void do_bigfile(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     439static void do_bigfile(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    440440{
    441441        char fs[32];
     
    501501}
    502502
    503 static void do_filtertable(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     503static void do_filtertable(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    504504{
    505505        char ifname[32];
     
    534534#include <radiusdb.h>
    535535
    536 static void cert_file_out(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     536static void cert_file_out(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    537537{
    538538        int idx = indexof(path, '/');
     
    554554}
    555555
    556 static void do_radiuscert(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     556static void do_radiuscert(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    557557{
    558558        int idx = indexof(path, '-');
     
    706706
    707707#ifdef HAVE_ATH9K
    708 static void do_spectral_scan(char *method, struct mime_handler *handler, char *p, webs_t stream, char *query)
     708static void do_spectral_scan(unsigned char method, struct mime_handler *handler, char *p, webs_t stream, char *query)
    709709{
    710710#define json_cache "/tmp/spectral_scan.json"
     
    761761#endif
    762762
    763 static void do_activetable(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     763static void do_activetable(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    764764{
    765765        char *temp2 = NULL;
     
    789789}
    790790
    791 static void do_wds(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     791static void do_wds(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    792792{
    793793        int idx = indexof(path, '-');
     
    803803}
    804804
    805 static void do_wireless_adv(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)
     805static void do_wireless_adv(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)
    806806{
    807807        int idx = indexof(path, '-');
     
    12161216        }
    12171217        if (!strncmp(path, "WL_FilterTable", 14))
    1218                 do_filtertable(NULL, NULL, path, wp, NULL);     // refresh
     1218                do_filtertable(METHOD_GET, NULL, path, wp, NULL);       // refresh
    12191219#ifdef HAVE_FREERADIUS
    12201220        else if (!strncmp(path, "FreeRadiusCert", 14))
    1221                 do_radiuscert(NULL, NULL, path, wp, NULL);      // refresh
     1221                do_radiuscert(METHOD_GET, NULL, path, wp, NULL);        // refresh
    12221222#endif
    12231223        // #ifdef HAVE_MADWIFI
    12241224        else if (!strncmp(path, "WL_ActiveTable", 14))
    1225                 do_activetable(NULL, NULL, path, wp, NULL);     // refresh
     1225                do_activetable(METHOD_GET, NULL, path, wp, NULL);       // refresh
    12261226        else if (!strncmp(path, "Wireless_WDS", 12))
    1227                 do_wds(NULL, NULL, path, wp, NULL);     // refresh
     1227                do_wds(METHOD_GET, NULL, path, wp, NULL);       // refresh
    12281228        // #endif
    12291229        else if (!strncmp(path, "Wireless_Advanced", 17))
    1230                 do_wireless_adv(NULL, NULL, path, wp, NULL);    // refresh
     1230                do_wireless_adv(METHOD_GET, NULL, path, wp, NULL);      // refresh
    12311231        else
    1232                 do_ej(NULL, NULL, path, wp, NULL);      // refresh
     1232                do_ej(METHOD_GET, NULL, path, wp, NULL);        // refresh
    12331233        websDone(wp, 200);
    12341234
     
    15321532        /** GUI Logout **/// Experimental, not work yet ...
    15331533        else if (!strncmp(value, "Logout", 6)) {
    1534                 do_ej(NULL, NULL, "Logout.asp", wp, NULL);
     1534                do_ej(METHOD_GET, NULL, "Logout.asp", wp, NULL);
    15351535                websDone(wp, 200);
    15361536                do_logout();
     
    15711571
    15721572                if (!strncmp(path, "WL_FilterTable", 14))
    1573                         do_filtertable(NULL, NULL, path, wp, NULL);     // refresh
     1573                        do_filtertable(METHOD_GET, NULL, path, wp, NULL);       // refresh
    15741574#ifdef HAVE_FREERADIUS
    15751575                else if (!strncmp(path, "FreeRadiusCert", 14))
    1576                         do_radiuscert(NULL, NULL, path, wp, NULL);      // refresh     
     1576                        do_radiuscert(METHOD_GET, NULL, path, wp, NULL);        // refresh     
    15771577#endif
    15781578                else if (!strncmp(path, "WL_ActiveTable", 14))
    1579                         do_activetable(NULL, NULL, path, wp, NULL);     // refresh     
     1579                        do_activetable(METHOD_GET, NULL, path, wp, NULL);       // refresh     
    15801580                else if (!strncmp(path, "Wireless_WDS", 12))
    1581                         do_wds(NULL, NULL, path, wp, NULL);     // refresh
     1581                        do_wds(METHOD_GET, NULL, path, wp, NULL);       // refresh
    15821582                else if (!strncmp(path, "Wireless_Advanced", 17))
    1583                         do_wireless_adv(NULL, NULL, path, wp, NULL);    // refresh
     1583                        do_wireless_adv(METHOD_GET, NULL, path, wp, NULL);      // refresh
    15841584                else
    1585                         do_ej(NULL, NULL, path, wp, NULL);      // refresh
     1585                        do_ej(METHOD_GET, NULL, path, wp, NULL);        // refresh
    15861586                websDone(wp, 200);
    15871587        } else {
    15881588#ifndef HAVE_WRK54G
    1589                 do_ej(NULL, NULL, "Reboot.asp", wp, NULL);
     1589                do_ej(METHOD_GET, NULL, "Reboot.asp", wp, NULL);
    15901590                websDone(wp, 200);
    15911591#endif
     
    17011701
    17021702#if !defined(HAVE_X86) && !defined(HAVE_MAGICBOX)
    1703 static void do_cfebackup(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1703static void do_cfebackup(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    17041704{
    17051705        system2("cat /dev/mtd/0 > /tmp/cfe.bin");
     
    17101710
    17111711#ifdef HAVE_PRIVOXY
    1712 static void do_wpad(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1712static void do_wpad(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    17131713{
    17141714        FILE *fp;
     
    17321732
    17331733#ifdef HAVE_ROUTERSTYLE
    1734 static void do_stylecss(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1734static void do_stylecss(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    17351735{
    17361736        char *style = nvram_get("router_style");
     
    18461846}
    18471847
    1848 static void do_stylecss_ie(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1848static void do_stylecss_ie(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    18491849{
    18501850        websWrite(stream, ".submitFooter input {\npadding:.362em .453em;\n}\n"  //
     
    18541854#endif
    18551855#ifdef HAVE_REGISTER
    1856 static void do_trial_logo(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1856static void do_trial_logo(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    18571857{
    18581858#if defined(HAVE_TRIMAX) || defined(HAVE_MAKSAT) || defined(HAVE_VILIM) || defined(HAVE_TELCOM) || defined(HAVE_WIKINGS) || defined(HAVE_NEXTMEDIA)
     
    18781878 */
    18791879
    1880 static void do_mypage(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1880static void do_mypage(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    18811881{
    18821882        char *snamelist = nvram_safe_get("mypage_scripts");
     
    19051905}
    19061906
    1907 static void do_fetchif(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     1907static void do_fetchif(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    19081908{
    19091909        char line[256];
     
    21762176
    21772177#ifdef HAVE_STATUS_SYSLOG
    2178 static void do_syslog(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     2178static void do_syslog(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    21792179{
    21802180
     
    22272227}
    22282228#endif
    2229 static void do_ttgraph(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     2229static void do_ttgraph(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    22302230{
    22312231#define COL_WIDTH 16            /* single column width */
     
    23612361}
    23622362
    2363 static void ttraff_backup(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     2363static void ttraff_backup(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    23642364{
    23652365        system2("echo TRAFF-DATA > /tmp/traffdata.bak");
     
    23692369}
    23702370
    2371 static void do_apply_cgi(char *method, struct mime_handler *handler, char *url, webs_t stream, char *q)
     2371static void do_apply_cgi(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *q)
    23722372{
    23732373        char *path, *query;
     
    23942394
    23952395#ifdef HAVE_LANGUAGE
    2396 static void do_language(char *method, struct mime_handler *handler, char *path, webs_t stream, char *query)     // jimmy,
     2396static void do_language(unsigned char method, struct mime_handler *handler, char *path, webs_t stream, char *query)     // jimmy,
    23972397            // https,
    23982398            // 8/4/2003
     
    27052705
    27062706#ifdef HAVE_BUFFALO
    2707 void do_vsp_page(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)
     2707void do_vsp_page(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)
    27082708{
    27092709/*
  • src/router/httpd/modules/nvramsr.c

    r32000 r32016  
    8787}
    8888
    89 void sr_config_cgi(char *method, struct mime_handler *handler, char *path, webs_t wp, char *query)
     89void sr_config_cgi(unsigned char method, struct mime_handler *handler, char *path, webs_t wp, char *query)
    9090{
    9191        if (restore_ret != 0)
    92                 do_ej(NULL, handler, "Fail.asp", wp, NULL);
     92                do_ej(METHOD_GET, handler, "Fail.asp", wp, NULL);
    9393        else
    94                 do_ej(NULL, handler, "Success_rest.asp", wp, NULL);
     94                do_ej(METHOD_GET, handler, "Success_rest.asp", wp, NULL);
    9595
    9696        websDone(wp, 200);
     
    106106}
    107107
    108 void nv_file_out(char *method, struct mime_handler *handler, char *path, webs_t wp, char *query)
     108void nv_file_out(unsigned char method, struct mime_handler *handler, char *path, webs_t wp, char *query)
    109109{
    110110
     
    183183}
    184184
    185 void td_config_cgi(char *method, struct mime_handler *handler, char *path, webs_t wp, char *query)
     185void td_config_cgi(unsigned char method, struct mime_handler *handler, char *path, webs_t wp, char *query)
    186186{
    187         do_ej(NULL, handler, "Traff_admin.asp", wp, NULL);
     187        do_ej(METHOD_GET, handler, "Traff_admin.asp", wp, NULL);
    188188        websDone(wp, 200);
    189189}
  • src/router/httpd/modules/upgrade.c

    r32000 r32016  
    5858void
    5959// do_upgrade_cgi(char *url, FILE *stream)
    60 do_upgrade_cgi(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)       // jimmy, https,
     60do_upgrade_cgi(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)       // jimmy, https,
    6161                                                        // 8/6/2003
    6262{
     
    6565        fprintf(stderr, "[UPGRADE] ret: %d\n", upgrade_ret);
    6666        if (upgrade_ret) {
    67                 do_ej(NULL, handler, "Fail_u_s.asp", stream, NULL);
     67                do_ej(METHOD_GET, handler, "Fail_u_s.asp", stream, NULL);
    6868                killall("ledtool", SIGTERM);
    6969                led_control(LED_DIAG, LED_OFF);
    7070        } else {
    71                 do_ej(NULL, handler, "Success_u_s.asp", stream, NULL);
     71                do_ej(METHOD_GET, handler, "Success_u_s.asp", stream, NULL);
    7272        }
    7373        websDone(stream, 200);
     
    8282#else
    8383
    84         do_ej(NULL, handler, "Fail_u_s.asp", stream, NULL);
     84        do_ej(METHOD_GET, handler, "Fail_u_s.asp", stream, NULL);
    8585        websDone(stream, 200);
    8686
  • src/router/httpd/modules/upgrade_rb500.c

    r32000 r32016  
    3333void
    3434// do_upgrade_cgi(char *url, FILE *stream)
    35 do_upgrade_cgi(char *method, struct mime_handler *handler, char *url, webs_t streamm, char *query)      // jimmy,
     35do_upgrade_cgi(unsigned char method, struct mime_handler *handler, char *url, webs_t streamm, char *query)      // jimmy,
    3636                                                                // https,
    3737                                                                // 8/6/2003
     
    4040        fprintf(stderr, "do post\n");
    4141        if (upgrade_ret)
    42                 do_ej(NULL, handler, "Fail_u_s.asp", stream, NULL);
     42                do_ej(METHOD_GET, handler, "Fail_u_s.asp", stream, NULL);
    4343        else
    44                 do_ej(NULL, handler, "Success_u_s.asp", stream, NULL);
     44                do_ej(METHOD_GET, handler, "Success_u_s.asp", stream, NULL);
    4545        fprintf(stderr, "websdone\n");
    4646
     
    5656        }
    5757#else
    58         do_ej(NULL, handler, "Fail_u_s.asp", stream, NULL);
     58        do_ej(METHOD_GET, handler, "Fail_u_s.asp", stream, NULL);
    5959        websDone(stream, 200);
    6060#endif
  • src/router/httpd/modules/upgrade_x86.c

    r32000 r32016  
    3737void
    3838// do_upgrade_cgi(char *url, FILE *stream)
    39 do_upgrade_cgi(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query)       // jimmy, https,
     39do_upgrade_cgi(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query)       // jimmy, https,
    4040                                                        // 8/6/2003
    4141{
     
    4343        fprintf(stderr, "do post\n");
    4444        if (upgrade_ret)
    45                 do_ej(NULL, handler, "Fail_u_s.asp", stream, NULL);
     45                do_ej(METHOD_GET, handler, "Fail_u_s.asp", stream, NULL);
    4646        else
    47                 do_ej(NULL, handler, "Success_u_s.asp", stream, NULL);
     47                do_ej(METHOD_GET, handler, "Success_u_s.asp", stream, NULL);
    4848        fprintf(stderr, "websdone\n");
    4949
     
    6060        }
    6161#else
    62         do_ej(NULL, handler, "Fail_u_s.asp", stream, NULL);
     62        do_ej(METHOD_GET, handler, "Fail_u_s.asp", stream, NULL);
    6363        websDone(stream, 200);
    6464#endif
  • src/router/httpd/visuals/ejs.c

    r32000 r32016  
    6060int (*websWrite) (webs_t wp, char *fmt, ...) = NULL;
    6161struct wl_client_mac *wl_client_macs = NULL;
    62 void (*do_ej) (char *method, struct mime_handler * handler, char *path, webs_t stream, char *query) = NULL;     // jimmy,
     62void (*do_ej) (unsigned char method, struct mime_handler * handler, char *path, webs_t stream, char *query) = NULL;     // jimmy,
    6363                                                                        // https,
    6464                                                                        // 8/4/2003
     
    11261126                for (i = 0; i < resultcount; i++) {
    11271127                        sprintf(buf, "%s/%s", directories[idx], result[i]);
    1128                         do_ej(NULL, NULL, buf, wp, NULL);
     1128                        do_ej(METHOD_GET, NULL, buf, wp, NULL);
    11291129                }
    11301130                for (i = 0; i < resultcount; i++) {
  • src/router/httpd/visuals/index.c

    r32000 r32016  
    3838                type = nvram_safe_get("wan_proto");
    3939#ifdef HAVE_DSL_CPE_CONTROL
    40         do_ej(NULL, NULL, "index_atm.asp", wp, NULL);
     40        do_ej(METHOD_GET, NULL, "index_atm.asp", wp, NULL);
    4141#endif
    4242        char ejname[32];
    4343        snprintf(ejname, 31, "index_%s.asp", type);
    44         do_ej(NULL, NULL, ejname, wp, NULL);
     44        do_ej(METHOD_GET, NULL, ejname, wp, NULL);
    4545}
    4646
     
    109109        char ejname[32];
    110110        snprintf(ejname, 31, "index_%s_atm.asp", argv[0]);
    111         do_ej(NULL, ejname, wp, NULL);
     111        do_ej(METHOD_GET, ejname, wp, NULL);
    112112#endif
    113113}
  • src/router/httpd/visuals/setupassistant.c

    r32000 r32016  
    193193void ej_show_sas_stage(webs_t wp, int argc, char_t ** argv)
    194194{
    195         do_ej(NULL, NULL, "sas_stage_1.asp", wp, NULL);
     195        do_ej(METHOD_GET, NULL, "sas_stage_1.asp", wp, NULL);
    196196}
    197197
     
    205205        char ejname[32];
    206206        snprintf(ejname, 31, "sas_%s.asp", type);
    207         do_ej(NULL, NULL, ejname, wp, NULL);
     207        do_ej(METHOD_GET, NULL, ejname, wp, NULL);
    208208}
    209209
  • src/router/httpd/visuals/status.c

    r32000 r32016  
    5050{
    5151
    52         do_ej(NULL, NULL, "Status_Router1.asp", wp, NULL);
     52        do_ej(METHOD_GET, NULL, "Status_Router1.asp", wp, NULL);
    5353
    5454        return;
  • src/router/shared/broadcom.h

    r32010 r32016  
    3737}
    3838
    39 extern void do_vsp_info_page(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query);
     39extern void do_vsp_info_page(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query);
    4040/*
    4141 * for dhcp
     
    253253 */
    254254extern void do_upgrade_post(char *url, webs_t stream, int len, char *boundary);
    255 extern void do_upgrade_cgi(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query);
     255extern void do_upgrade_cgi(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query);
    256256extern int sys_restore(char *url, webs_t stream, int *total);
    257257extern void do_restore_post(char *url, webs_t stream, int len, char *boundary);
     
    259259extern void macclone_onload(webs_t wp, char *arg);
    260260extern void do_olupgrade_post(char *url, webs_t stream, int len, char *boundary);
    261 extern void do_olupgrade_cgi(char *method, struct mime_handler *handler, char *url, webs_t stream, char *query);
     261extern void do_olupgrade_cgi(unsigned char method, struct mime_handler *handler, char *url, webs_t stream, char *query);
    262262/*
    263263 * for filter
     
    352352 */
    353353extern void nv_file_in(char *url, webs_t stream, int len, char *boundary);
    354 extern void nv_file_out(char *method, struct mime_handler *handler, char *path, webs_t wp, char *query);
    355 extern void sr_config_cgi(char *method, struct mime_handler *handler, char *path, webs_t wp, char *query);
     354extern void nv_file_out(unsigned char method, struct mime_handler *handler, char *path, webs_t wp, char *query);
     355extern void sr_config_cgi(unsigned char method, struct mime_handler *handler, char *path, webs_t wp, char *query);
    356356
    357357/*
     
    360360extern void ttraff_erase(webs_t wp);
    361361extern void td_file_in(char *url, webs_t stream, int len, char *boundary);
    362 extern void td_config_cgi(char *method, struct mime_handler *handler, char *path, webs_t wp, char *query);
     362extern void td_config_cgi(unsigned char method, struct mime_handler *handler, char *path, webs_t wp, char *query);
    363363
    364364/*
     
    693693
    694694#define wl_client_macs Uwl_client_macs
    695 extern void (*Udo_ej) (char *method, struct mime_handler * handler, char *path, webs_t stream, char *query);    // jimmy,
     695extern void (*Udo_ej) (unsigned char method, struct mime_handler * handler, char *path, webs_t stream, char *query);    // jimmy,
    696696                                                                        // https,
    697697                                                                        // 8/4/2003
Note: See TracChangeset for help on using the changeset viewer.