diff options
author | dos-reis <gdr@axiomatics.org> | 2013-04-01 00:00:11 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-04-01 00:00:11 +0000 |
commit | 664e27a1d8f4927285e8c4f89870796c9d9f518e (patch) | |
tree | 0d898301aa9fe690bc9d02e9450b39492efb4d6c /src/lib/sockio-c.c | |
parent | 37a3397a82d94da8df1c0a0e48a39d43d17cce00 (diff) | |
download | open-axiom-664e27a1d8f4927285e8c4f89870796c9d9f518e.tar.gz |
Fix various warnings from the C++ compiler
Diffstat (limited to 'src/lib/sockio-c.c')
-rw-r--r-- | src/lib/sockio-c.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/sockio-c.c b/src/lib/sockio-c.c index 662768f2..d44eb818 100644 --- a/src/lib/sockio-c.c +++ b/src/lib/sockio-c.c @@ -1,7 +1,7 @@ /* Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd. All rights reserved. - Copyright (C) 2007-2010, Gabriel Dos Reis. + Copyright (C) 2007-2013, Gabriel Dos Reis. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -846,9 +846,8 @@ sock_send_floats(int purpose, const double *vals, int num) OPENAXIOM_C_EXPORT double get_float(openaxiom_sio *sock) { - int val; double num = -1.0; - val = fill_buf(sock, byte_address(num), sizeof(double), "get_float"); + fill_buf(sock, byte_address(num), sizeof(double), "get_float"); #ifdef DEBUG fprintf(stderr,"get_float: received %f\n",num); #endif |