diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /apps/drwho/global.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'apps/drwho/global.h')
-rw-r--r-- | apps/drwho/global.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/drwho/global.h b/apps/drwho/global.h index 090b20b5b33..d049bd3f43d 100644 --- a/apps/drwho/global.h +++ b/apps/drwho/global.h @@ -17,32 +17,36 @@ // // ============================================================================ -#if !defined (_GLOBAL_H) +#ifndef _GLOBAL_H #define _GLOBAL_H #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + // These constants are used throughout drwho. -enum +enum { MAXUSERIDNAMELEN = 8, - MAX_USER_TIMEOUT = 300, - MAX_HOST_TIMEOUT = 300, + MAX_USER_TIMEOUT = 300, + MAX_HOST_TIMEOUT = 300, UDP_PACKET_SIZE = 1024 * 8, PORT_NUMBER = 12344 }; -// Default name of file where friends info is stored. +// Default name of file where friends info is stored. #define FRIEND_FILE ".friends.dta" -// Default name where rwho info is stored. +// Default name where rwho info is stored. #define RWHODIR "/usr/spool/rwho" -// Macros for handling message types. +// Macros for handling message types. #define GET_PACKET_TYPE(P) (ntohs (*((short *) P))) #define SET_PACKET_TYPE(P,T) ((*(short *) P) = ntohs (T)) #define SKIP_PACKET_TYPE(P) ((P) + sizeof (short)) -#define SUBTRACT_PACKET_TYPE(L) ((L) - sizeof (short)) +#define SUBTRACT_PACKET_TYPE(L) ((L) - sizeof (short)) #endif /* _GLOBAL_H */ |