Changeset 34 in Main


Ignore:
Timestamp:
Sep 16, 2024, 10:15:59 PM (2 months ago)
Author:
Nishi
Message:

fix

Location:
trunk/Server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/main.c

    r20 r34  
    4040                                }
    4141                                confpath = argv[i];
     42                        } else if(strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-V") == 0) {
     43                                printf("Tewi HTTPd Tewi/%s\n", tw_get_version());
     44                                printf("Under public domain.\n");
     45                                printf("Copyright (C) 2024 Nishi\n");
     46                                return 0;
    4247                        } else {
    4348                                fprintf(stderr, "Unknown option: %s\n", argv[i]);
  • trunk/Server/strptime.c

    r32 r34  
    3636//__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $");
    3737
     38#ifdef __MINGW32__
     39
    3840#include <ctype.h>
    3941#include <string.h>
     
    833835    return NULL;
    834836}
     837
     838#endif
Note: See TracChangeset for help on using the changeset viewer.