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