Replace u_intX by C99 uint_X
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 23 Mar 2014 04:27:18 +0000 (00:27 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 23 Mar 2014 04:27:18 +0000 (00:27 -0400)
src/configfile.c

index be8f77a..3248b65 100644 (file)
 #  include "config.h"
 #endif
 
+#include <stdint.h>
+#include <stdbool.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/stat.h>
 #include <stdlib.h>
-#include <stdbool.h>
 
 #if STDC_HEADERS
 #  include <string.h>
@@ -283,7 +284,7 @@ static void ParseConfigurationFile(FILE *file)
                } else if (STREQ(token, "port")) {
                        token = GetArguments("port", true);
                        wmnotify_infos.port =
-                           (u_int16_t) GetNumber(token, "port");
+                           (uint16_t) GetNumber(token, "port");
                }
 
                else if (STREQ(token, "username")) {