Removed C99 stdint
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -33,7 +32,8 @@ int initTLS() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Listener *createListener(SocketType type, uint16_t port, int backlog, ...) {
|
Listener *createListener(SocketType type, unsigned short port,
|
||||||
|
int backlog, ...) {
|
||||||
Listener *ret = malloc(sizeof(Listener));
|
Listener *ret = malloc(sizeof(Listener));
|
||||||
va_list ap;
|
va_list ap;
|
||||||
if (ret == NULL)
|
if (ret == NULL)
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#ifndef HAVE_SITEFILE
|
#ifndef HAVE_SITEFILE
|
||||||
#define HAVE_SITEFILE
|
#define HAVE_SITEFILE
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include <swebs/types.h>
|
#include <swebs/types.h>
|
||||||
#include <swebs/config.h>
|
#include <swebs/config.h>
|
||||||
@@ -44,7 +43,7 @@ typedef struct {
|
|||||||
char *key;
|
char *key;
|
||||||
char *cert;
|
char *cert;
|
||||||
int timeout;
|
int timeout;
|
||||||
uint16_t port;
|
unsigned short port;
|
||||||
#if DYNAMIC_LINKED_PAGES
|
#if DYNAMIC_LINKED_PAGES
|
||||||
int (*getResponse)(Request *, Response *);
|
int (*getResponse)(Request *, Response *);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include <swebs/util.h>
|
#include <swebs/util.h>
|
||||||
#include <swebs/types.h>
|
#include <swebs/types.h>
|
||||||
@@ -63,7 +62,7 @@ int istrcmp(char *s1, char *s2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RequestType getType(char *str) {
|
RequestType getType(char *str) {
|
||||||
uint64_t type;
|
unsigned long type;
|
||||||
int i;
|
int i;
|
||||||
if (strlen(str) >= 8)
|
if (strlen(str) >= 8)
|
||||||
return INVALID;
|
return INVALID;
|
||||||
|
|||||||
Reference in New Issue
Block a user