summaryrefslogtreecommitdiff
path: root/backend/dvi/mdvi-lib/common.c
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 10:43:23 +0200
committerraveit65 <[email protected]>2019-07-01 17:07:40 +0200
commitaa24676651f8bd3e8b434f72d5aac98e84c0867d (patch)
tree37693766ecb4733c6061dcc2ddc26954fab5ca01 /backend/dvi/mdvi-lib/common.c
parent6741c5db1e5c48c01b25bb7900dc40d48552925d (diff)
downloadatril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.bz2
atril-aa24676651f8bd3e8b434f72d5aac98e84c0867d.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'backend/dvi/mdvi-lib/common.c')
-rw-r--r--backend/dvi/mdvi-lib/common.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/backend/dvi/mdvi-lib/common.c b/backend/dvi/mdvi-lib/common.c
index 97b34b56..847a307d 100644
--- a/backend/dvi/mdvi-lib/common.c
+++ b/backend/dvi/mdvi-lib/common.c
@@ -25,8 +25,8 @@
long fsgetn(FILE *p, size_t n)
{
long v;
-
- v = fgetbyte(p);
+
+ v = fgetbyte(p);
if(v & 0x80)
v -= 0x100;
while(--n > 0)
@@ -37,7 +37,7 @@ long fsgetn(FILE *p, size_t n)
Ulong fugetn(FILE *p, size_t n)
{
Ulong v;
-
+
v = fgetbyte(p);
while(--n > 0)
v = (v << 8) | fgetbyte(p);
@@ -47,7 +47,7 @@ Ulong fugetn(FILE *p, size_t n)
long msgetn(const Uchar *p, size_t n)
{
long v = (long)*p++;
-
+
if(v & 0x80)
v -= 0x100;
while(--n > 0)
@@ -68,7 +68,7 @@ char *read_string(FILE *in, int s, char *buffer, size_t len)
{
int n;
char *str;
-
+
n = fugetn(in, s ? s : 1);
if((str = buffer) == NULL || n + 1 > len)
str = mdvi_malloc(n + 1);
@@ -83,7 +83,7 @@ char *read_string(FILE *in, int s, char *buffer, size_t len)
size_t read_bcpl(FILE *in, char *buffer, size_t maxlen, size_t wanted)
{
size_t i;
-
+
i = (int)fuget1(in);
if(maxlen && i > maxlen)
i = maxlen;
@@ -99,7 +99,7 @@ char *read_alloc_bcpl(FILE *in, size_t maxlen, size_t *size)
{
size_t i;
char *buffer;
-
+
i = (size_t)fuget1(in);
if(maxlen && i > maxlen)
i = maxlen;
@@ -121,7 +121,7 @@ void buff_free(Buffer *buf)
{
if(buf->data)
mdvi_free(buf->data);
- buff_init(buf);
+ buff_init(buf);
}
void buff_init(Buffer *buf)
@@ -149,7 +149,7 @@ char *buff_gets(Buffer *buf, size_t *length)
char *ptr;
char *ret;
size_t len;
-
+
ptr = strchr(buf->data, '\n');
if(ptr == NULL)
return NULL;
@@ -163,6 +163,6 @@ char *buff_gets(Buffer *buf, size_t *length)
}
ret[len] = 0;
if(length) *length = len;
- return ret;
+ return ret;
}