repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 807af91d53c5e48d208904337e31e7b2ee691b38:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 807af91d53c5e48d208904337e31e7b2ee691b38
Author: Emanuele Giaquinta 
Date:   Fri Dec 7 01:29:00 2007 +0000

    Remove unneeded casts.

diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
index fcdfe6caccb6abdf8f6171540cbf4adb781da1a4..
index ..8eec970f339282e84f7343fdfe3ba3f031cfcf5d 100644
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -305,7 +305,7 @@ rxvt_display::rxvt_display (const char *id)
 XrmDatabase
 rxvt_display::get_resources (bool refresh)
 {
-  char *homedir = (char *)getenv ("HOME");
+  char *homedir = getenv ("HOME");
   char fname[1024];

   /*
@@ -320,7 +320,7 @@ rxvt_display::get_resources (bool refresh)
   // 6. System wide per application default file.

   /* Add in $XAPPLRESDIR/Rxvt only; not bothering with XUSERFILESEARCHPATH */
-  if ((xe = (char *)getenv ("XAPPLRESDIR")))
+  if ((xe = getenv ("XAPPLRESDIR")))
     {
       snprintf (fname, sizeof (fname), "%s/%s", xe, RESCLASS);

@@ -402,7 +402,7 @@ rxvt_display::get_resources (bool refresh)

   // 3. User's per host defaults file
   /* Add in XENVIRONMENT file */
-  if ((xe = (char *)getenv ("XENVIRONMENT"))
+  if ((xe = getenv ("XENVIRONMENT"))
       && (rdb1 = XrmGetFileDatabase (xe)))
     XrmMergeDatabases (rdb1, &database);
   else if (homedir)

-----END OF PAGE-----