Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Wed, 2 May 2001 02:37:33 +0000 (02:37 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Wed, 2 May 2001 02:37:33 +0000 (02:37 +0000)
Log message:

Shave one more yak: remove the last vestiges of TIME_T_FMT and friends.
This has not yet been compile-tested...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@443 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_server.c
ircd/m_settime.c
ircd/s_err.c

index 3971ea7a438c13fb9c6fd0a2d5f047bb90b38bf3..865999cd4e02b79a6680daa8a5fc96cf9b880341 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-05-01  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * ircd/s_err.c: get rid of the last vestiges of TIME_T_FMT
+
+       * ircd/m_settime.c: get rid of the last vestiges of TIME_T_FMT
+
+       * ircd/m_server.c: get rid of the last vestiges of TIME_T_FMT
+
 2001-05-01  Perry Lorier       <Isomer@coders.net>
        * doc/iauth.doc: Protocol for iauth server. (from hybrid).
        * doc/linux-poll.patch: Patch to make Linux under 2.2 not deadlock
index 32f275a3277432fa0d318dc6bcc5098a4b26bfb6..394fccdb97574960aca5f6f80b8d819c9f25462c 100644 (file)
@@ -192,8 +192,8 @@ int mr_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   hop = atoi(parv[2]);
   start_timestamp = atoi(parv[3]);
   timestamp = atoi(parv[4]);
-  Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age " TIME_T_FMT " ("
-        TIME_T_FMT ")", host, parv[4], start_timestamp, cli_serv(&me)->timestamp));
+  Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age %Tu (%Tu)",
+        host, parv[4], start_timestamp, cli_serv(&me)->timestamp));
 
   if ((timestamp < OLDEST_TS || (hop == 1 && start_timestamp < OLDEST_TS)))
   {
@@ -825,8 +825,8 @@ int ms_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   hop = atoi(parv[2]);
   start_timestamp = atoi(parv[3]);
   timestamp = atoi(parv[4]);
-  Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age " TIME_T_FMT " ("
-      TIME_T_FMT ")", host, parv[4], start_timestamp, cli_serv(&me)->timestamp));
+  Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age %Tu (%Tu)",
+        host, parv[4], start_timestamp, cli_serv(&me)->timestamp));
   if ((timestamp < OLDEST_TS || (hop == 1 && start_timestamp < OLDEST_TS)))
   {
     return exit_client_msg(cptr, sptr, &me,
index a532605b6af23b49713ce3f1a0f0c0702a52ce0f..b0b94413d8775b12be6b723d773026456697f54c 100644 (file)
@@ -141,7 +141,7 @@ int ms_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (IsServer(sptr))           /* send to unlagged servers */
   {
     if (feature_bool(FEAT_RELIABLE_CLOCK)) {
-      sprintf_irc(tbuf, TIME_T_FMT, TStime());
+      ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
       parv[1] = tbuf;
     }
 
@@ -151,7 +151,7 @@ int ms_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   }
   else
   {
-    sprintf_irc(tbuf, TIME_T_FMT, TStime());
+    ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
     parv[1] = tbuf;
     if (hunt_server_cmd(sptr, CMD_SETTIME, cptr, 1, "%s %C", 2, parc, parv) !=
         HUNTED_ISME)
@@ -217,7 +217,7 @@ int mo_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (IsServer(sptr))           /* send to unlagged servers */
   {
     if (feature_bool(FEAT_RELIABLE_CLOCK)) {
-      sprintf_irc(tbuf, TIME_T_FMT, TStime());
+      ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
       parv[1] = tbuf;
     }
 
@@ -227,7 +227,7 @@ int mo_settime(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   }
   else
   {
-    sprintf_irc(tbuf, TIME_T_FMT, TStime());
+    ircd_snprintf(0, tbuf, sizeof(tbuf), "%Tu", TStime());
     parv[1] = tbuf;
     if (hunt_server_cmd(sptr, CMD_SETTIME, cptr, 1, "%s %C", 2, parc, parv) !=
         HUNTED_ISME)
index 07ee89b9efcc560a1c2241393a5df1420dc1c4b5..d0702656e26e31faaf353cea7814d05cbf05d9f8 100644 (file)
@@ -527,7 +527,7 @@ static Numeric replyTable[] = {
 /* 246 */
   { RPL_STATSTLINE, "%c %s %s", "246" },
 /* 247 */
-  { RPL_STATSGLINE, "%c %s@%s " TIME_T_FMT " :%s", "247" },
+  { RPL_STATSGLINE, "%c %s@%s %Tu :%s", "247" },
 /* 248 */
   { RPL_STATSULINE, "%c %s %s %s %d %d", "248" },
 /* 249 */
@@ -593,11 +593,11 @@ static Numeric replyTable[] = {
 /* 279 */
   { 0 },
 /* 280 */
-  { RPL_GLIST, "%s%s%s " TIME_T_FMT " %s %c :%s", "280" },
+  { RPL_GLIST, "%s%s%s %Tu %s %c :%s", "280" },
 /* 281 */
   { RPL_ENDOFGLIST, ":End of G-line List", "281" },
 /* 282 */
-  { RPL_JUPELIST, "%s " TIME_T_FMT " %s %c :%s", "282" },
+  { RPL_JUPELIST, "%s %Tu %s %c :%s", "282" },
 /* 283 */
   { RPL_ENDOFJUPELIST, ":End of Jupe List", "283" },
 /* 284 */
@@ -691,7 +691,7 @@ static Numeric replyTable[] = {
 /* 328 */
   { 0 },
 /* 329 */
-  { RPL_CREATIONTIME, "%s " TIME_T_FMT, "329" },
+  { RPL_CREATIONTIME, "%s %Tu", "329" },
 /* 330 */
   { 0 },
 /* 331 */
@@ -699,7 +699,7 @@ static Numeric replyTable[] = {
 /* 332 */
   { RPL_TOPIC, "%s :%s", "332" },
 /* 333 */
-  { RPL_TOPICWHOTIME, "%s %s " TIME_T_FMT, "333" },
+  { RPL_TOPICWHOTIME, "%s %s %Tu", "333" },
 /* 334 */
   { RPL_LISTUSAGE, ":%s", "334" },
 /* 335 */
@@ -767,7 +767,7 @@ static Numeric replyTable[] = {
 /* 366 */
   { RPL_ENDOFNAMES, "%s :End of /NAMES list.", "366" },
 /* 367 */
-  { RPL_BANLIST, "%s %s %s " TIME_T_FMT, "367" },
+  { RPL_BANLIST, "%s %s %s %Tu", "367" },
 /* 368 */
   { RPL_ENDOFBANLIST, "%s :End of Channel Ban List", "368" },
 /* 369 */
@@ -815,7 +815,7 @@ static Numeric replyTable[] = {
 /* 390 */
   { 0 },
 /* 391 */
-  { RPL_TIME, "%s " TIME_T_FMT " %ld :%s", "391" },
+  { RPL_TIME, "%s %Tu %ld :%s", "391" },
 /* 392 */
   { 0 },
 /* 393 */
@@ -1063,7 +1063,7 @@ static Numeric replyTable[] = {
 /* 514 */
   { ERR_NOSUCHJUPE, "%s :No such jupe", "514" },
 /* 515 */
-  { ERR_BADEXPIRE, TIME_T_FMT " :Bad expire time", "515" },
+  { ERR_BADEXPIRE, "%Tu :Bad expire time", "515" },
 /* 516 */
   { ERR_DONTCHEAT, " :Don't Cheat.", "516" },
 /* 517 */