View Issue Details

IDProjectCategoryView StatusLast Update
0004602libmicrohttpddocumentationpublic2016-08-12 16:20
Reporterjfierro Assigned ToChristian Grothoff  
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 14:24

reporter   ~0011014

Just change it to `getchar()`.

Christian Grothoff

2016-08-12 16:20

manager   ~0011028

Fixed in SVN 37707.

Issue History

Date Modified Username Field Change
2016-07-16 20:43 jfierro New Issue
2016-08-10 14:24 silvioprog Note Added: 0011014
2016-08-12 16:20 Christian Grothoff Note Added: 0011028
2016-08-12 16:20 Christian Grothoff Status new => resolved
2016-08-12 16:20 Christian Grothoff Fixed in Version => 0.9.51
2016-08-12 16:20 Christian Grothoff Resolution open => fixed
2016-08-12 16:20 Christian Grothoff Assigned To => Christian Grothoff
2016-08-12 16:20 Christian Grothoff Status resolved => closed
2016-08-12 16:20 Christian Grothoff Product Version => 0.9.48
2016-08-12 16:20 Christian Grothoff Target Version => 0.9.51