xevil-2.02_p2-glibc-2.10.patch 645 B

123456789101112131415161718192021
  1. diff -ur cmn.old/utils.h cmn/utils.h
  2. --- cmn.old/utils.h 2009-08-22 02:16:21.000000000 +0300
  3. +++ cmn/utils.h 2009-08-22 02:26:33.000000000 +0300
  4. @@ -238,13 +238,13 @@
  5. same. */
  6. static char* strchr(const char* cs,int c)
  7. - {return ::strchr(cs,c);}
  8. + {return const_cast<char*>(::strchr(cs,c));}
  9. static char* strrchr(const char* cs,int c)
  10. - {return ::strrchr(cs,c);}
  11. + {return const_cast<char*>(::strrchr(cs,c));}
  12. static char* strstr(const char* cs,const char* ct)
  13. - {return ::strstr(cs,ct);}
  14. + {return const_cast<char*>(::strstr(cs,ct));}
  15. static void strcpy(char* s,const char* ct)
  16. {::strcpy(s,ct);}