Changeset 80
- Timestamp:
- 06.10.2002 20:00:03 (6 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
HISTORY (modified) (1 diff)
-
source/config.h.in (modified) (1 diff)
-
source/data.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/HISTORY
r75 r80 4 4 - pid configurable through command line [RC, looking at Loic Tortay's patch for pid configurable through configfile] 5 5 - various minor fixes [LT, RC] 6 - Sould work under solaris now 6 7 7 8 Version 0.11.5pre2 -
trunk/source/config.h.in
r66 r80 66 66 #undef __OS_OSF1__ 67 67 68 #ifdef __OS_SUNOS__ 69 #define LONGINTFORMAT "llu" 70 #else 71 #define LONGINTFORMAT "qu" 72 #endif 73 68 74 /* Timezone : Local Time, Coordinated Universal Time */ 69 75 typedef enum {UTC, local} ipfm_timezone; -
trunk/source/data.c
r66 r80 2 2 data.c - counts the data exchanged 3 3 4 (c) 1999-200 1Robert Cheramy <tibob@via.ecp.fr>4 (c) 1999-2002 Robert Cheramy <tibob@via.ecp.fr> 5 5 (c) 2000 Samuel Hocevar <sam@via.ecp.fr> 6 6 (c) 1999 Andres Krapf <dae@via.ecp.fr> 7 7 (c) 2001 Loïc Tortay & IN2P3 Computing Center <tortay@cc.ipin2p3.fr> 8 8 9 200010xx : sam : - attempt to create directory if error opening logfile. 10 - optional clearing of data 11 200010xx : tibob : optional append to logfile 9 200010 : sam : - attempt to create directory if error opening logfile. 10 - optional clearing of data 11 200010 : tibob : optional append to logfile 12 200210 : tibob : fix for Solaris 12 13 13 14 */ … … 303 304 if ((NULL != he) && (strlen(he->h_name) <= 34) && 304 305 (strlen(he->h_name) > 0)) { 305 snprintf(pFormatedData, BufLen, "%-35s%15 qu%15qu%15qu\n",306 snprintf(pFormatedData, BufLen, "%-35s%15" LONGINTFORMAT "%15" LONGINTFORMAT "%15" LONGINTFORMAT "\n", 306 307 he->h_name, 307 308 pData->in, … … 315 316 char *res; 316 317 res = inet_ntoa(addr); 317 snprintf(pFormatedData, BufLen, "%-35s%15 qu%15qu%15qu\n",318 snprintf(pFormatedData, BufLen, "%-35s%15" LONGINTFORMAT "%15" LONGINTFORMAT "%15" LONGINTFORMAT "\n", 318 319 res, 319 320 pData->in,
