diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-05-25 14:39:13 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-05-25 14:39:13 +0000 |
commit | 4e4a2bcbedeeede1c10cab6d601bfdceb81f0ec1 (patch) | |
tree | 9be01ada9ed0f0515d8aefb9aabd9d24c27950b3 | |
parent | 0de7c96d2abe488914243f1fd35b6eae1ad5d1ab (diff) | |
download | libgtop-4e4a2bcbedeeede1c10cab6d601bfdceb81f0ec1.tar.gz |
Cast to size_t to remove warning. Cvs:
* gnuserv.c: (permitted): Cast to size_t to remove warning.
Cvs: ----------------------------------------------------------------------
-rw-r--r-- | src/daemon/ChangeLog | 4 | ||||
-rw-r--r-- | src/daemon/gnuserv.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/daemon/ChangeLog b/src/daemon/ChangeLog index 9eb1e571..767866da 100644 --- a/src/daemon/ChangeLog +++ b/src/daemon/ChangeLog @@ -1,3 +1,7 @@ +2004-05-25 Benoît Dejean <tazforever@dlfp.org> + + * gnuserv.c: (permitted): Cast to size_t to remove warning. + 2004-03-04 Bastien Nocera <hadess@hadess.net> * Makefile.am: diff --git a/src/daemon/gnuserv.c b/src/daemon/gnuserv.c index febdcd6f..192ef089 100644 --- a/src/daemon/gnuserv.c +++ b/src/daemon/gnuserv.c @@ -203,7 +203,7 @@ permitted (u_long host_addr, int fd) auth_data_len = atoi (buf); - if (auth_data_len < 1 || auth_data_len > sizeof(buf)) { + if (auth_data_len < 1 || (size_t)auth_data_len > sizeof(buf)) { syslog_message(LOG_WARNING, "Invalid data length supplied by client"); return FALSE; } |