#endif
else if (STRNCMP (pty, "pty", 3) && STRNCMP (pty, "tty", 3))
{
- rxvt_print_error ("can't parse tty name \"%s\"", pty);
+ rxvt_warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty);
return;
}
pwent = getpwuid (getuid ());
if (!pwent)
{
- rxvt_print_error ("no entry in password file");
+ rxvt_warn ("no entry in password file, not updating lastlog.\n");
return;
}
+
MEMSET (&ll, 0, sizeof (ll));
ll.ll_time = time (NULL);
STRNCPY (ll.ll_line, pty, sizeof (ll.ll_line));
if (name == NULL || str == NULL || str <= (name + 1)
|| (name > path && name[-1] != '/'))
{
- rxvt_print_error ("menu error <%s>\n", path);
+ rxvt_warn ("menu error A<%s>, continuing.\n", path);
break;
}
if (str[1] == MENUITEM_BEG)
if (str == NULL)
{
- rxvt_print_error ("menu error <%s>\n", path);
+ rxvt_warn ("menu error B<%s>, continuing.\n", path);
break;
}
name2[-2] = '\0'; /* remove prev MENUITEM_END */
(char *)x_stp_bits, x_stp_width,
x_stp_height);
if (!gcvalue.stipple)
- {
- rxvt_print_error ("can't create bitmap");
- exit (EXIT_FAILURE);
- }
+ rxvt_fatal ("can't create bitmap");
+
gcvalue.fill_style = FillOpaqueStippled;
gcvalue.foreground = PixColors[Color_fg];
gcvalue.background = PixColors[Color_bg];
/*--------------------------------*-C-*---------------------------------*
* File: xpm.c
*----------------------------------------------------------------------*
- * $Id: xpm.C,v 1.9 2004-02-13 12:16:21 pcg Exp $
+ * $Id: xpm.C,v 1.10 2004-03-17 03:47:14 pcg Exp $
*
* All portions of code are copyright by their respective author/s.
* Copyright (c) 1997 Carsten Haitzler <raster@zip.com.au>
&bgPixmap.pixmap, NULL,
&xpmAttr))
{
- char *p;
+ char *p;
/* semi-colon delimited */
if ((p = STRCHR (file, ';')) == NULL)
p = STRCHR (file, '\0');
- rxvt_print_error ("couldn't load XPM file \"%.*s\"", (p - file),
- file);
+ rxvt_warn ("couldn't load XPM file \"%.*s\", ignoring.", (p - file), file);
}
+
free (f);
}
+
resize_pixmap ();
return bgPixmap.pixmap;
}