projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afc80c0
)
luci-0.9: merge r5171
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 30 Jul 2009 11:07:29 +0000
(11:07 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 30 Jul 2009 11:07:29 +0000
(11:07 +0000)
libs/lmo/src/lmo_core.c
patch
|
blob
|
history
diff --git
a/libs/lmo/src/lmo_core.c
b/libs/lmo/src/lmo_core.c
index f9e5331309aaf1d8f04d1f9923794bdea574fd1e..cd117bec804824b422be1bfbe0edacd87fbfdeb7 100644
(file)
--- a/
libs/lmo/src/lmo_core.c
+++ b/
libs/lmo/src/lmo_core.c
@@
-22,13
+22,10
@@
extern char _lmo_error[1024];
static int lmo_read32( int fd, uint32_t *val )
{
- uint8_t buffer[5];
-
- if( read(fd, buffer, 4) < 4 )
+ if( read(fd, val, 4) < 4 )
return -1;
- buffer[4] = 0;
- *val = ntohl(*((uint32_t *) buffer));
+ *val = ntohl(*val);
return 4;
}