Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 6th, 2011  |  syntax: None  |  size: 0.29 KB  |  views: 123  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.       for (i = 0; i < rtems_bsdnet_nameserver_count; i++) {
  2.         strcpy(buf, "nameserver ");
  3.         strcat(buf, inet_ntoa(rtems_bsdnet_ntpserver[i]));
  4.         strcat(buf, "\n");
  5.         if (rtems_rootfs_file_append ("/etc/resolv.conf", MKFILE_MODE, 1, bufl))
  6.           break;
  7.       }
clone this paste RAW Paste Data