You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5 KiB

  1. --- a/src/webu.c
  2. +++ b/src/webu.c
  3. @@ -1203,7 +1203,7 @@ static void webu_answer_strm_type(struct webui_ctx *webui) {
  4. }
  5. -static int webu_answer_ctrl(void *cls
  6. +static enum MHD_Result webu_answer_ctrl(void *cls
  7. , struct MHD_Connection *connection
  8. , const char *url
  9. , const char *method
  10. @@ -1213,7 +1213,7 @@ static int webu_answer_ctrl(void *cls
  11. , void **ptr) {
  12. /* This function "answers" the request for a webcontrol.*/
  13. - int retcd;
  14. + enum MHD_Result retcd;
  15. struct webui_ctx *webui = *ptr;
  16. /* Eliminate compiler warnings */
  17. @@ -1275,7 +1275,7 @@ static int webu_answer_ctrl(void *cls
  18. }
  19. -static int webu_answer_strm(void *cls
  20. +static enum MHD_Result webu_answer_strm(void *cls
  21. , struct MHD_Connection *connection
  22. , const char *url
  23. , const char *method
  24. @@ -1285,7 +1285,7 @@ static int webu_answer_strm(void *cls
  25. , void **ptr) {
  26. /* Answer the request for all the streams*/
  27. - int retcd;
  28. + enum MHD_Result retcd;
  29. struct webui_ctx *webui = *ptr;
  30. /* Eliminate compiler warnings */
  31. @@ -1484,7 +1484,7 @@ static void webu_mhd_features_basic(struct mhdstart_ctx *mhdst){
  32. #if MHD_VERSION < 0x00094400
  33. (void)mhdst;
  34. #else
  35. - int retcd;
  36. + enum MHD_Result retcd;
  37. retcd = MHD_is_feature_supported (MHD_FEATURE_BASIC_AUTH);
  38. if (retcd == MHD_YES){
  39. MOTION_LOG(DBG, TYPE_STREAM, NO_ERRNO ,_("Basic authentication: available"));