File: port_declaration.patch

package info (click to toggle)
asciijump 1.0.2~beta-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 940 kB
  • sloc: ansic: 4,672; sh: 2,582; makefile: 191
file content (18 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: declare as_port as same type as in as_main.c
 use uint16_t to cover the all possible ports
Bug-Debian: https://bugs.debian.org/688476

--- a/include/aserver.h
+++ b/include/aserver.h
@@ -70,8 +70,9 @@
 
 #else
 
+#include <stdint.h>
 extern struct s_as_players *as_players;
-extern short int as_port;
+extern uint16_t as_port;
 extern int as_limit;
 extern s_state as_state;
 extern s_state as_work;