ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/memory.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/memory.c (file contents):
Revision 1646 by michael, Wed Nov 7 21:02:43 2012 UTC vs.
Revision 1664 by michael, Sun Nov 18 14:33:47 2012 UTC

# Line 110 | Line 110 | outofmemory(void)
110    ilog(LOG_TYPE_IRCD, "Out of memory: restarting server...");
111    restart("Out of Memory");
112   }
113
114 #ifndef NDEBUG
115 /*
116 * frob some memory. debugging time.
117 * -- adrian
118 */
119 void
120 mem_frob(void *data, int len)
121 {
122  /* correct for Intel only! little endian */
123  unsigned char b[4] = { 0xef, 0xbe, 0xad, 0xde };
124  int i;
125  char *cdata = data;
126
127  for (i = 0; i < len; i++)
128  {
129    *cdata = b[i % 4];
130    cdata++;
131  }
132 }
133 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)