-/* xscreensaver, Copyright (c) 1992 Jamie Zawinski <jwz@lucid.com>
+/* xscreensaver, Copyright (c) 1992 Jamie Zawinski <jwz@mcom.com>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
static void (*next_fn) ();
+#ifndef VMS
#include "noses/nose.0.left"
#include "noses/nose.1.left"
#include "noses/nose.0.right"
#include "noses/nose.right.front"
#include "noses/nose.front"
#include "noses/nose.down"
+#else
+#include "noses/nose.0_left"
+#include "noses/nose.1_left"
+#include "noses/nose.0_right"
+#include "noses/nose.1_right"
+#include "noses/nose.left_front"
+#include "noses/nose.right_front"
+#include "noses/nose.front"
+#include "noses/nose.down"
+#endif
static void
init_images ()
switch (getwordsfrom)
{
case FROM_PROGRAM:
- if (pp = popen(program, "r"))
+ if ((pp = popen(program, "r")))
{
while (fgets(p, sizeof(buf) - strlen(buf), pp))
{
}
break;
case FROM_FILE:
- if (pp = fopen(filename, "r"))
+ if ((pp = fopen(filename, "r")))
{
while (fgets(p, sizeof(buf) - strlen(buf), pp))
{
char *progclass = "Noseguy";
char *defaults [] = {
- "*background: black",
- "*foreground: white",
- "*mode: program",
+ "Noseguy.background: black", /* to placate SGI */
+ "Noseguy.foreground: white",
+ "*mode: string",
"*program: fortune -s",
"noseguy.font: -*-new century schoolbook-*-r-*-*-*-180-*-*-*-*-*-*",
0
{
list = XListFonts(dpy, FONT_NAME, 32767, &foo);
for (i = 0; i < foo; i++)
- if (font = XLoadQueryFont(dpy, list[i]))
+ if ((font = XLoadQueryFont(dpy, list[i])))
break;
if (!font)
{