]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: lua: fix some indent issues
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2015 08:14:59 +0000 (10:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2015 08:16:23 +0000 (10:16 +0200)
Just the result from a few copy-pastes with different tab sizes.

src/hlua.c

index 2def3d47f7e9d3571aab94613b9129bacba0f141..ffcfb836a870ebeec082050f6395a4da9e3ca8b3 100644 (file)
@@ -759,8 +759,8 @@ static inline void hlua_sendlog(struct proxy *px, int level, const char *msg)
 
        send_log(px, level, "%s", trash.str);
        if (!(global.mode & MODE_QUIET) || (global.mode & (MODE_VERBOSE | MODE_STARTING))) {
-      get_localtime(date.tv_sec, &tm);
-      fprintf(stderr, "[%s] %03d/%02d%02d%02d (%d) : %s\n",
+               get_localtime(date.tv_sec, &tm);
+               fprintf(stderr, "[%s] %03d/%02d%02d%02d (%d) : %s\n",
                        log_levels[level], tm.tm_yday, tm.tm_hour, tm.tm_min, tm.tm_sec,
                        (int)getpid(), trash.str);
                fflush(stderr);
@@ -2917,7 +2917,7 @@ __LJMP static int hlua_run_sample_conv(lua_State *L)
                if (hsmp->stringsafe)
                        lua_pushstring(L, "");
                else
-                       lua_pushnil(L);
+                       lua_pushnil(L);
                return 1;
        }
 
@@ -2926,7 +2926,7 @@ __LJMP static int hlua_run_sample_conv(lua_State *L)
                hlua_smp2lua_str(L, &smp);
        else
                hlua_smp2lua(L, &smp);
-        return 1;
+       return 1;
 }
 
 /*