mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
changing {} style to match majority of previous style
This commit is contained in:
parent
da6cdf014b
commit
961d929f4d
320 changed files with 5502 additions and 10485 deletions
|
@ -18,8 +18,7 @@
|
|||
#include "lzio.h"
|
||||
|
||||
|
||||
int luaZ_fill(ZIO *z)
|
||||
{
|
||||
int luaZ_fill(ZIO *z) {
|
||||
size_t size;
|
||||
lua_State *L = z->L;
|
||||
const char *buff;
|
||||
|
@ -34,8 +33,7 @@ int luaZ_fill(ZIO *z)
|
|||
}
|
||||
|
||||
|
||||
void luaZ_init(lua_State *L, ZIO *z, lua_Reader reader, void *data)
|
||||
{
|
||||
void luaZ_init(lua_State *L, ZIO *z, lua_Reader reader, void *data) {
|
||||
z->L = L;
|
||||
z->reader = reader;
|
||||
z->data = data;
|
||||
|
@ -45,8 +43,7 @@ void luaZ_init(lua_State *L, ZIO *z, lua_Reader reader, void *data)
|
|||
|
||||
|
||||
/* --------------------------------------------------------------- read --- */
|
||||
size_t luaZ_read(ZIO *z, void *b, size_t n)
|
||||
{
|
||||
size_t luaZ_read(ZIO *z, void *b, size_t n) {
|
||||
while (n) {
|
||||
size_t m;
|
||||
if (z->n == 0) { /* no bytes in buffer? */
|
||||
|
@ -68,8 +65,7 @@ size_t luaZ_read(ZIO *z, void *b, size_t n)
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
char *luaZ_openspace(lua_State *L, Mbuffer *buff, size_t n)
|
||||
{
|
||||
char *luaZ_openspace(lua_State *L, Mbuffer *buff, size_t n) {
|
||||
if (n > buff->buffsize) {
|
||||
if (n < LUA_MINBUFFER) n = LUA_MINBUFFER;
|
||||
luaZ_resizebuffer(L, buff, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue