]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Declare radius_xlat return as size_t
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 30 Nov 2012 15:54:47 +0000 (15:54 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 1 Dec 2012 12:04:30 +0000 (12:04 +0000)
src/main/radconf2xml.c
src/main/radwho.c
src/main/xlat.c

index 30f319dba5d5c4dd33ab692a6a9cfa2dc369ca2d..068a14cd0567e010638593dcb6527f1511870a03 100644 (file)
@@ -46,9 +46,9 @@ int debug_flag = 0;
 struct main_config_t mainconfig;
 char *request_log_file = NULL;
 char *debug_log_file = NULL;
-int radius_xlat(UNUSED char *out, UNUSED int outlen, UNUSED const char *fmt,
-               UNUSED REQUEST *request,
-               UNUSED RADIUS_ESCAPE_STRING func, UNUSED void *arg)
+size_t radius_xlat(UNUSED char *out, UNUSED int outlen, UNUSED const char *fmt,
+                  UNUSED REQUEST *request,
+                  UNUSED RADIUS_ESCAPE_STRING func, UNUSED void *arg)
 {
        return -1;
 }
index 81d1eb02ee91ac1f43784f689844439b52833884..18e701ab090438318001f8700de4be603c6fff14 100644 (file)
@@ -80,9 +80,9 @@ int log_stripped_names;
 struct main_config_t mainconfig;
 char *request_log_file = NULL;
 char *debug_log_file = NULL;
-int radius_xlat(char *out, UNUSED int outlen, UNUSED const char *fmt,
-               UNUSED REQUEST *request,
-               UNUSED RADIUS_ESCAPE_STRING func, UNUSED void *arg)
+size_t radius_xlat(char *out, UNUSED int outlen, UNUSED const char *fmt,
+                  UNUSED REQUEST *request,
+                  UNUSED RADIUS_ESCAPE_STRING func, UNUSED void *arg)
 {
        *out = 0;
        return 0;
index b7194f3b124a14b1a441c6079f4c7029368faff5..e290e85156750113857b3090975b848def640360 100644 (file)
@@ -1202,7 +1202,7 @@ done:
  * @param func function to escape final value e.g. SQL quoting
  * @return length of string written @bug should really have -1 for failure
  */
-int radius_xlat(char *out, int outlen, const char *fmt,
+size_t radius_xlat(char *out, int outlen, const char *fmt,
                REQUEST *request,
                RADIUS_ESCAPE_STRING func, void *funcarg)
 {