Project

General

Profile

Revision 152

Added by Greg Tress over 16 years ago

View differences:

trunk/code/projects/colonet/ColonetServer/Command.cpp
129 129

  
130 130
  if (number_tokens > 3 + PACKET_DATA_LEN) {
131 131
    /* Too many tokens */
132
	printf("Too many tokens\n");
132
    printf("Too many tokens\n");
133 133
    return -1;
134 134
  }
135 135

  
136 136
  if (number_tokens < 3) {
137 137
    /* Not enough tokens */
138
	printf("Too few tokens\n");
138
    printf("Too few tokens\n");
139 139
    return -1;
140 140
  }
141 141
  
142 142
  if (tokens[1] != COLONET_REQUEST && tokens[1] != COLONET_COMMAND) {
143 143
    /* Invalid message type */
144
	printf("Invalid message type. Was: %x Expected: %x %x\n", 
145
		tokens[1], COLONET_REQUEST, COLONET_COMMAND);
144
    printf("Invalid message type. Was: %x Expected: %x %x\n", tokens[1], COLONET_REQUEST, COLONET_COMMAND);
146 145
    return -1;
147 146
  }
148 147

  

Also available in: Unified diff