View Issue Details

IDProjectCategoryView StatusLast Update
0004602libmicrohttpddocumentationpublic2016-08-12 14:20
Reporterjfierro Assigned ToChristian Grothoff Due Date
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.48 
Target Version0.9.51Fixed in Version0.9.51 
Summary0004602: The minimal example does not compile.
DescriptionThe minimal example on https://www.gnu.org/software/libmicrohttpd/ does not compile cleanly as the getc() function expects a (FILE *) argument. Change to getchar() or getc(stdin) to fix.
Additional Informationint main(int argc,
     char ** argv) {
  struct MHD_Daemon * d;
  if (argc != 2) {
    printf("%s PORT\n",
       argv[0]);
    return 1;
  }
  d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,
               atoi(argv[1]),
               NULL,
               NULL,
               &ahc_echo,
               PAGE,
               MHD_OPTION_END);
  if (d == NULL)
    return 1;
  (void) getc (); /* >>>>>> Compilation Error <<<<<< */
  MHD_stop_daemon(d);
  return 0;
}
TagsNo tags attached.

Activities

silvioprog

2016-08-10 12:24

reporter   ~0011014

Just change it to `getchar()`.

Christian Grothoff

2016-08-12 14:20

manager   ~0011028

Fixed in SVN 37707.

Issue History

Date ModifiedUsernameFieldChange
2016-07-16 18:43jfierroNew Issue
2016-08-10 12:24silvioprogNote Added: 0011014
2016-08-12 14:20Christian GrothoffNote Added: 0011028
2016-08-12 14:20Christian GrothoffStatusnew => resolved
2016-08-12 14:20Christian GrothoffFixed in Version => 0.9.51
2016-08-12 14:20Christian GrothoffResolutionopen => fixed
2016-08-12 14:20Christian GrothoffAssigned To => Christian Grothoff
2016-08-12 14:20Christian GrothoffStatusresolved => closed
2016-08-12 14:20Christian GrothoffProduct Version => 0.9.48
2016-08-12 14:20Christian GrothoffTarget Version => 0.9.51