mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[project @ 2004-06-06 11:47:23 by joty]
Log in stderr on which machine NetSurf was running. svn path=/import/netsurf/; revision=930
This commit is contained in:
parent
6ad8aa088c
commit
9dde0f406f
@ -9,6 +9,7 @@
|
||||
#include <locale.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/utsname.h>
|
||||
#include "netsurf/utils/config.h"
|
||||
#include "netsurf/content/cache.h"
|
||||
#include "netsurf/content/fetch.h"
|
||||
@ -50,7 +51,13 @@ int main(int argc, char** argv)
|
||||
|
||||
void netsurf_init(int argc, char** argv)
|
||||
{
|
||||
struct utsname utsname;
|
||||
|
||||
stdout = stderr;
|
||||
if (uname(&utsname) != 0)
|
||||
LOG(("Failed to extract machine information\n"));
|
||||
else
|
||||
LOG(("NetSurf on <%s>, node <%s>, release <%s>, version <%s>, machine <%s>\n", utsname.sysname, utsname.nodename, utsname.release, utsname.version, utsname.machine));
|
||||
gui_init(argc, argv);
|
||||
setlocale(LC_ALL, "");
|
||||
fetch_init();
|
||||
|
Loading…
Reference in New Issue
Block a user