]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move generic to 1, so that returning -1 is better
authorAlan T. DeKok <aland@freeradius.org>
Wed, 30 Jul 2025 21:21:52 +0000 (17:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 1 Aug 2025 11:05:53 +0000 (07:05 -0400)
src/lib/bio/base.h

index db36e9f09e6125e8b5a5fe263c788f32b55cb1ce..68ac002bb10441641d9df497afa747d18a02bbe0 100644 (file)
@@ -46,10 +46,10 @@ RCSIDH(lib_bio_base_h, "$Id$")
 
 typedef enum {
        FR_BIO_ERROR_NONE = 0,
+       FR_BIO_ERROR_GENERIC,                           //!< -1 == generic "failed" error - check fr_strerror()
        FR_BIO_ERROR_IO_WOULD_BLOCK,                    //!< IO would block
 
        FR_BIO_ERROR_IO,                                //!< IO error - check errno
-       FR_BIO_ERROR_GENERIC,                           //!< generic "failed" error - check fr_strerror()
        FR_BIO_ERROR_OOM,                               //!< out of memory
        FR_BIO_ERROR_VERIFY,                            //!< some packet verification error
        FR_BIO_ERROR_BUFFER_FULL,                       //!< the buffer is full