summaryrefslogtreecommitdiffstats
path: root/kdm/backend/sessreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'kdm/backend/sessreg.c')
-rw-r--r--kdm/backend/sessreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdm/backend/sessreg.c b/kdm/backend/sessreg.c
index e603ff4c6..b507f8141 100644
--- a/kdm/backend/sessreg.c
+++ b/kdm/backend/sessreg.c
@@ -134,7 +134,7 @@ sessreg( struct display *d, int pid, const char *user, int uid )
}
ut_ent.ut_time = time( 0 );
- colon = (char*)strchr( d->name, ':' );
+ colon = strchr( d->name, ':' );
clen = strlen( colon );
if (clen > (int)(sizeof(ut_ent.ut_line) - UTL_OFF) - 2)
return; /* uhm, well ... */
@@ -175,7 +175,7 @@ sessreg( struct display *d, int pid, const char *user, int uid )
colon = d->name;
left = 0;
} else {
- dot = (char*)strchr( d->name, '.' );
+ dot = strchr( d->name, '.' );
if (dot && dot - d->name < left) {
memcpy( ut_ent.ut_line + UTL_OFF, d->name, left - 1 );
ut_ent.ut_line[UTL_OFF + left - 1] = '~';