Ticket #18946: patch-src-main.c.diff

File patch-src-main.c.diff, 763 bytes (added by pierreetienne.meunier@…, 16 years ago)
  • main.c

    old new  
    1818#include<X11/Xaw/Label.h>
    1919#include<X11/Shell.h>
    2020#include<X11/xpm.h>
     21#include <stdlib.h>
    2122
    2223#include"xjump.h"
    2324#include"record.h"
     
    390391{
    391392  Pixmap icon,mask;
    392393
    393   icon = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),icon_bits,
     394  icon = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),(char*)icon_bits,
    394395                               icon_width,icon_height );
    395396
    396   mask = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),icon_msk_bits,
     397  mask = XCreateBitmapFromData( Disp,DefaultRootWindow(Disp),(char*)icon_msk_bits,
    397398                               icon_msk_width,icon_msk_height );
    398399
    399400  XtVaSetValues( Top,XtNiconPixmap,icon,XtNiconMask,mask,NULL );