ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/device.C
(Generate patch)

Comparing gvpe/src/device.C (file contents):
Revision 1.7 by pcg, Wed Mar 23 17:03:58 2005 UTC vs.
Revision 1.9 by pcg, Sat Jul 9 02:35:42 2005 UTC

14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with gvpe; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/ 20*/
21 21
22#include "config.h" 22#include "config.h"
23 23
24#include <cstring> 24#include <cstring>
32 32
33void *net_packet::operator new(size_t s) 33void *net_packet::operator new(size_t s)
34{ 34{
35 if (s > sizeof (data_packet)) 35 if (s > sizeof (data_packet))
36 { 36 {
37 slog (L_ERR, _("FATAL: allocation for network packet larger than max supported packet size (%d > %d).\n"), 37 slog (L_ERR, _("FATAL: allocation for network packet larger than max supported packet size (%d > %d)."),
38 s, sizeof (data_packet)); 38 s, sizeof (data_packet));
39 abort (); 39 abort ();
40 } 40 }
41 41
42 if (pkt_cachen) 42 if (pkt_cachen)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines