Displaying 2 results from an estimated 2 matches for "opt_dhcpinfo".
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
hi,
I've written a start of an c32-module to do basic substition:
add subst.c32
this is a start of a generic substition module
---
commit 9a1f41a7e6599fe6a162197cd9ddc6610185e780
tree cfb799a0be9844926afe44e21b2eb96630666c44
parent 89478bdbfa7167bc1b627a478d042c99e46f06b7
author Maurice Massar <massar at unix-ag.uni-kl.de> Tue, 10 Apr 2007 20:13:39 +0200
committer Maurice Massar
2010 Apr 27
4
Patch sensible callback framework
..._t total) {
+ int percent = (int)(((float)cur / (float)total) * 100.0);
+ if (percent >= 100)
+ printf(" OK\n");
+}
+
int main(int argc, char *argv[])
{
const char *kernel_name;
@@ -118,11 +145,13 @@ int main(int argc, char *argv[])
size_t kernel_len;
bool opt_dhcpinfo = false;
bool opt_quiet = false;
+ bool opt_percent = false;
void *dhcpdata;
size_t dhcplen;
char **argp, *arg, *p;
- openconsole(&dev_null_r, &dev_stdcon_w);
+
+ console_ansi_raw();
(void)argc;
argp = argv + 1;
@@ -157,16 +186,23 @@ int main(int a...