extras/physfshttpd.c
changeset 654 c0ae01de361d
parent 576 5da65f8e9a50
child 767 db29bf06d171
equal deleted inserted replaced
653:89d56fcb2b40 654:c0ae01de361d
    73 "<body>Can't find that.</body></html>\n\n";
    73 "<body>Can't find that.</body></html>\n\n";
    74 
    74 
    75 
    75 
    76 static void feed_file_http(const char *ipstr, int sock, const char *fname)
    76 static void feed_file_http(const char *ipstr, int sock, const char *fname)
    77 {
    77 {
    78     PHYSFS_file *in = PHYSFS_openRead(fname);
    78     PHYSFS_File *in = PHYSFS_openRead(fname);
    79     char buffer[1024];
    79     char buffer[1024];
    80     printf("%s: requested [%s].\n", ipstr, fname);
    80     printf("%s: requested [%s].\n", ipstr, fname);
    81     if (in == NULL)
    81     if (in == NULL)
    82     {
    82     {
    83         printf("%s: Can't open [%s]: %s.\n",
    83         printf("%s: Can't open [%s]: %s.\n",