aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/domain_codec.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-26 09:34:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-26 09:34:59 +0000
commitf1980f67d3b005090a31b7465d219e8ca19c5736 (patch)
tree746646c47f2c42f4b94ced5cb89774406d3e8a24 /networking/udhcp/domain_codec.c
parentcdb0b652ddd6bfbc4d83e21453b3b4137b887e18 (diff)
downloadbusybox-w32-f1980f67d3b005090a31b7465d219e8ca19c5736.tar.gz
busybox-w32-f1980f67d3b005090a31b7465d219e8ca19c5736.tar.bz2
busybox-w32-f1980f67d3b005090a31b7465d219e8ca19c5736.zip
dhcp: add FAST_FUNC as appropriate. -160 bytes.
Diffstat (limited to 'networking/udhcp/domain_codec.c')
-rw-r--r--networking/udhcp/domain_codec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/domain_codec.c b/networking/udhcp/domain_codec.c
index 239ae5b5c..6da4e8d69 100644
--- a/networking/udhcp/domain_codec.c
+++ b/networking/udhcp/domain_codec.c
@@ -23,7 +23,7 @@
23 * returns a newly allocated string containing the space-separated domains, 23 * returns a newly allocated string containing the space-separated domains,
24 * prefixed with the contents of string pre, or NULL if an error occurs. 24 * prefixed with the contents of string pre, or NULL if an error occurs.
25 */ 25 */
26char *dname_dec(const uint8_t *cstr, int clen, const char *pre) 26char* FAST_FUNC dname_dec(const uint8_t *cstr, int clen, const char *pre)
27{ 27{
28 const uint8_t *c; 28 const uint8_t *c;
29 int crtpos, retpos, depth, plen = 0, len = 0; 29 int crtpos, retpos, depth, plen = 0, len = 0;
@@ -178,7 +178,7 @@ static int find_offset(const uint8_t *cstr, int clen, const uint8_t *dname)
178 * The computed string is returned directly; its length is returned via retlen; 178 * The computed string is returned directly; its length is returned via retlen;
179 * NULL and 0, respectively, are returned if an error occurs. 179 * NULL and 0, respectively, are returned if an error occurs.
180 */ 180 */
181uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) 181uint8_t* FAST_FUNC dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen)
182{ 182{
183 uint8_t *d, *dname; 183 uint8_t *d, *dname;
184 int off; 184 int off;