/[dynamips]/trunk/utils.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/utils.c

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

upstream/dynamips-0.2.7/utils.c revision 10 by dpavlin, Sat Oct 6 16:29:14 2007 UTC upstream/dynamips-0.2.8-RC1/utils.c revision 11 by dpavlin, Sat Oct 6 16:33:40 2007 UTC
# Line 208  void mem_dump(FILE *f_output,u_char *pkt Line 208  void mem_dump(FILE *f_output,u_char *pkt
208     }     }
209    
210     fprintf(f_output,"\n");     fprintf(f_output,"\n");
211       fflush(f_output);
212  }  }
213    
214  /* Logging function */  /* Logging function */
# Line 256  char *m_fgets(char *buffer,int size,FILE Line 257  char *m_fgets(char *buffer,int size,FILE
257  }  }
258    
259  /* Read a file and returns it in a buffer */  /* Read a file and returns it in a buffer */
260  ssize_t m_read_file(char *filename,char **buffer)  ssize_t m_read_file(char *filename,u_char **buffer)
261  {  {
262     char tmp[256],*ptr,*nptr;     u_char tmp[256],*ptr,*nptr;
263     size_t len,tot_len;     size_t len,tot_len;
264     FILE *fd;     FILE *fd;
265    
# Line 296  void *m_memalign(size_t boundary,size_t Line 297  void *m_memalign(size_t boundary,size_t
297  {  {
298     void *p;     void *p;
299    
300  #ifdef __linux__  #if defined(__linux__) || HAS_POSIX_MEMALIGN
301     if (posix_memalign((void *)&p,boundary,size))     if (posix_memalign((void *)&p,boundary,size))
302  #else  #else
303  #if defined(__CYGWIN__) || defined(SUNOS)  #if defined(__CYGWIN__) || defined(SUNOS)

Legend:
Removed from v.10  
changed lines
  Added in v.11

  ViewVC Help
Powered by ViewVC 1.1.26