aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-08-19 17:21:49 +0200
committerThomas White <taw@physics.org>2014-08-19 17:21:49 +0200
commit922dec7601a54faac4b475bad9ebb5f74c30b61a (patch)
tree90c2451efba04437074e2f1b2b5e44c3c3a4d0bd
parent2e2856a6da556d1b038d7a6f7e5e677732ed3eb5 (diff)
Clean up a couple of warnings
-rw-r--r--libcrystfel/src/stream.c2
-rw-r--r--src/dw-hdfsee.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 9dd014df..fd051884 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -1060,7 +1060,7 @@ void write_geometry_file(Stream *st, const char *geom_filename) {
do {
rval = fgets(line, 1023, geom_fh);
- fprintf(st->fh, line);
+ fputs(line, st->fh);
} while ( rval != NULL );
fprintf(st->fh, GEOM_END_MARKER"\n");
fflush(st->fh);
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index d59c6784..3bc93ecd 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -518,7 +518,6 @@ static void redraw_window(DisplayWindow *dw)
static void set_window_size(DisplayWindow *dw)
{
gint width;
- GdkGeometry geom;
if ( dw->image == NULL ) {
dw->width = 320;