/[gxemul]/trunk/src/devices/dev_kn230.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_kn230.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 34 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_kn230.c,v 1.18 2007/02/03 20:14:23 debug Exp $   *  $Id: dev_kn230.c,v 1.19 2007/06/15 19:11:15 debug Exp $
29   *     *  
30   *  DEC MIPSMATE 5100 (KN230) stuff.   *  COMMENT: DEC KN230 (MIPSMATE 5100) stuff
31   */   */
32    
33  #include <stdio.h>  #include <stdio.h>
# Line 137  DEVINIT(kn230) Line 137  DEVINIT(kn230)
137          char tmpstr[300];          char tmpstr[300];
138          int i;          int i;
139    
140          d = malloc(sizeof(struct kn230_data));          CHECK_ALLOCATION(d = malloc(sizeof(struct kn230_data)));
         if (d == NULL) {  
                 fprintf(stderr, "out of memory\n");  
                 exit(1);  
         }  
141          memset(d, 0, sizeof(struct kn230_data));          memset(d, 0, sizeof(struct kn230_data));
142    
143          /*          /*

Legend:
Removed from v.34  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26