projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dthelp: Change to ANSI function definitions
[oweals/cde.git]
/
cde
/
programs
/
dtstyle
/
Startup.c
diff --git
a/cde/programs/dtstyle/Startup.c
b/cde/programs/dtstyle/Startup.c
index c1c39d9d18dd25ae72363281f5999b4ef47a2ee5..bc754c0551cb1a0c5b50a22fcc8d80b1925b99d2 100644
(file)
--- a/
cde/programs/dtstyle/Startup.c
+++ b/
cde/programs/dtstyle/Startup.c
@@
-16,7
+16,7
@@
* details.
*
* You should have received a copy of the GNU Lesser General Public
* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librar
ar
ies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
@@
-43,6
+43,7
@@
#include <X11/Xlib.h>
#include <Xm/MwmUtil.h>
#include <X11/Xlib.h>
#include <Xm/MwmUtil.h>
+#include <errno.h>
#include <Xm/Xm.h>
#include <Xm/XmP.h>
#include <Xm/Xm.h>
#include <Xm/XmP.h>
@@
-726,7
+727,9
@@
saveStartup(
sprintf(bufr, "%s*startupDlg.x: %d\n", bufr, x);
sprintf(bufr, "%s*startupDlg.y: %d\n", bufr, y);
sprintf(bufr, "%s*startupDlg.x: %d\n", bufr, x);
sprintf(bufr, "%s*startupDlg.y: %d\n", bufr, y);
- write (fd, bufr, strlen(bufr));
+ if(-1 == write (fd, bufr, strlen(bufr))) {
+ perror(strerror(errno));
+ }
}
}
}
}