Give deltax(), deltay() internal linkage

External linkage unnecessary since commit 3ca88271.
This commit is contained in:
Markus Armbruster 2010-04-04 09:23:48 +02:00
parent 5e08b7fa55
commit 5f08a3c04a
2 changed files with 2 additions and 8 deletions

View file

@ -280,8 +280,6 @@ extern int logreopen(void);
extern void logerror(char *, ...) ATTRIBUTE((format (printf, 1, 2))); extern void logerror(char *, ...) ATTRIBUTE((format (printf, 1, 2)));
/* more in misc.h */ /* more in misc.h */
/* mapdist.c */ /* mapdist.c */
extern int deltax(int, int);
extern int deltay(int, int);
extern int mapdist(int, int, int, int); extern int mapdist(int, int, int, int);
/* move.c */ /* move.c */
/* in path.h */ /* in path.h */

View file

@ -31,17 +31,13 @@
* *
*/ */
/*
* mapdist returns (integer) distance between two sectors.
*/
#include <config.h> #include <config.h>
#include "misc.h" #include "misc.h"
#include "optlist.h" #include "optlist.h"
#include "prototypes.h" #include "prototypes.h"
int static int
deltax(int x1, int x2) deltax(int x1, int x2)
{ {
int dx; int dx;
@ -53,7 +49,7 @@ deltax(int x1, int x2)
return dx; return dx;
} }
int static int
deltay(int y1, int y2) deltay(int y1, int y2)
{ {
int dy; int dy;