mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Silence warning
Cast the result of the operation to long, not the time(NULL) call. On systems where sizeof(time_t) is other than long this will produce a warning.
This commit is contained in:
		| @@ -53,7 +53,7 @@ Log_Message(int Level, const char *msg) | |||||||
| 	if (!Is_Daemon) { | 	if (!Is_Daemon) { | ||||||
| 		/* log to console */ | 		/* log to console */ | ||||||
| 		fprintf(stdout, "[%ld:%d %4ld] %s\n", (long)getpid(), Level, | 		fprintf(stdout, "[%ld:%d %4ld] %s\n", (long)getpid(), Level, | ||||||
| 				(long)time(NULL) - NGIRCd_Start, msg); | 				(long)(time(NULL) - NGIRCd_Start), msg); | ||||||
| 		fflush(stdout); | 		fflush(stdout); | ||||||
| 	} | 	} | ||||||
| #ifdef SYSLOG | #ifdef SYSLOG | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Federico G. Schwindt
					Federico G. Schwindt