PennMUSH Community

Changeset 840

Show
Ignore:
Timestamp:
05/15/07 11:43:08 (2 years ago)
Author:
shawnw
Message:

#7324: // comments and other warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.2/branches/devel/CHANGES.182

    r839 r840  
    1919Minor changes: 
    2020  * Removed the gmalloc malloc option. [SW] 
     21  * Assorted gcc warning fixes. [SW] 
    2122 
    2223Version 1.8.2 patchlevel 4                      May ??, 2007 
  • 1.8.2/branches/devel/src/funlist.c

    r816 r840  
    31213121/* string, regexp, replacement string. Acts like sed or perl's s///g, 
    31223122 * with an ig version */ 
    3123 // int re_subpatterns = -1;  /**< Number of subpatterns in regexp */ 
    3124 // int *re_offsets;       /**< Array of offsets to subpatterns */ 
    3125 // char *re_from = NULL;          /**< Pointer to last match position */ 
    31263123FUNCTION(fun_regreplace) 
    31273124{ 
  • 1.8.2/branches/devel/src/funmath.c

    r604 r840  
    12731273 
    12741274  if (fabs(denom - 1) < 1.0e-10) 
    1275     safe_format(buff, bp, "%.0lf", num); 
     1275    safe_format(buff, bp, "%.0f", num); 
    12761276  else 
    1277     safe_format(buff, bp, "%.0lf/%.0lf", num, denom); 
     1277    safe_format(buff, bp, "%.0f/%.0f", num, denom); 
    12781278} 
    12791279 
  • 1.8.2/branches/devel/src/funtime.c

    r814 r840  
    221221    } 
    222222    if (i == 0) { 
    223       safe_str(T("#-1 INVALID TIMESTRING"), buff, bp);  // no numbers 
     223      safe_str(T("#-1 INVALID TIMESTRING"), buff, bp);  /* no numbers */ 
    224224      return; 
    225225    } 
    226226    str2[i] = '\0'; 
    227227    if (!*str1) { 
    228       secs += parse_integer(str2);  // no more chars, just add seconds and stop 
     228      secs += parse_integer(str2);  /* no more chars, just add seconds and stop */ 
    229229      break; 
    230230    } 
     
    232232    case 'd': 
    233233    case 'D': 
    234       secs += (parse_integer(str2) * 86400);    // days 
     234      secs += (parse_integer(str2) * 86400);    /* days */ 
    235235      break; 
    236236    case 'h': 
    237237    case 'H': 
    238       secs += (parse_integer(str2) * 3600); // hours 
     238      secs += (parse_integer(str2) * 3600); /* hours */ 
    239239      break; 
    240240    case 'm': 
    241241    case 'M': 
    242       secs += (parse_integer(str2) * 60);   // minutes 
     242      secs += (parse_integer(str2) * 60);   /* minutes */ 
    243243      break; 
    244244    case 's': 
    245245    case 'S': 
    246246    case ' ': 
    247       secs += parse_integer(str2);  // seconds 
     247      secs += parse_integer(str2);  /* seconds */ 
    248248      break; 
    249249    default: 
     
    251251      return; 
    252252    } 
    253     str1++;         // move past the time char 
     253    str1++;         /* move past the time char */ 
    254254  } 
    255255  safe_integer(secs, buff, bp); 
  • 1.8.2/branches/devel/src/notify.c

    r527 r840  
    331331      bp = tbuf; 
    332332      safe_str((char *) messages[type].message, tbuf, &bp); 
    333       safe_chr(IAC, tbuf, &bp); 
    334       safe_chr(GOAHEAD, tbuf, &bp); 
     333      safe_chr((char)IAC, tbuf, &bp); 
     334      safe_chr((char)GOAHEAD, tbuf, &bp); 
    335335      *bp = '\0'; 
    336336      return (unsigned char *) tbuf; 
     
    371371      bp = tbuf; 
    372372      safe_str((char *) messages[type].message, tbuf, &bp); 
    373       safe_chr(IAC, tbuf, &bp); 
    374       safe_chr(GOAHEAD, tbuf, &bp); 
     373      safe_chr((char)IAC, tbuf, &bp); 
     374      safe_chr((char)GOAHEAD, tbuf, &bp); 
    375375      *bp = '\0'; 
    376376      return (unsigned char *) tbuf; 
     
    388388      case IAC: 
    389389    if (type == NA_TPASCII) 
    390       safe_str("\xFF\xFF", t, &o); 
     390      safe_strl("\xFF\xFF", 2, t, &o); 
    391391    else if (strip) 
    392392      safe_str(accent_table[IAC].base, t, &o); 
     
    405405    break; 
    406406      case '\n': 
    407     safe_str("\r\n", t, &o); 
     407    safe_strl("\r\n", 2, t, &o); 
    408408    break; 
    409409      default: 
     
    421421      bp = tbuf; 
    422422      safe_str((char *) messages[type].message, tbuf, &bp); 
    423       safe_chr(IAC, tbuf, &bp); 
    424       safe_chr(GOAHEAD, tbuf, &bp); 
     423      safe_chr((char)IAC, tbuf, &bp); 
     424      safe_chr((char)GOAHEAD, tbuf, &bp); 
    425425      *bp = '\0'; 
    426426      return (unsigned char *) tbuf; 
     
    533533    bp = tbuf; 
    534534    safe_str((char *) messages[type].message, tbuf, &bp); 
    535     safe_chr(IAC, tbuf, &bp); 
    536     safe_chr(GOAHEAD, tbuf, &bp); 
     535    safe_chr((char)IAC, tbuf, &bp); 
     536    safe_chr((char)GOAHEAD, tbuf, &bp); 
    537537    *bp = '\0'; 
    538538    return (unsigned char *) tbuf; 
  • 1.8.2/branches/devel/src/services.c

    r477 r840  
    1 /* Win32 services routines */ 
    2  
    3 /* Author: Nick Gammon */ 
    4  
    5 #ifdef WIN32 
     1/** \file services.c 
     2 * \brief Win32 services routines  
     3 * 
     4 * Original author: Nick Gammon  
     5 */ 
     6 
    67 
    78#include "copyrite.h" 
    89#include "config.h" 
     10 
     11#ifdef WIN32 
    912 
    1013#include <windows.h>        /* for service and thread routines */ 
  • 1.8.2/branches/devel/src/set.c

    r816 r840  
    876876    } 
    877877  } else { 
    878     // We don't do it - we just pemit it. 
     878    /* We don't do it - we just pemit it. */ 
    879879    if (!ansi_long_flag && ShowAnsi(player)) 
    880880      notify_format(player, "%s - Set: %s", AL_NAME(a), tbuf_ansi);