gdebug.c: gdbg_set_file() fixes.

This commit is contained in:
sezero
2018-08-03 18:41:45 +03:00
parent 6a898856bb
commit 371f2af8ec
3 changed files with 6 additions and 3 deletions

View File

@@ -484,9 +484,10 @@ gdbg_set_file(const char *name)
{
outf = fopen(name,"w"); // open up a new one
if (outf) gdbg_msgfile = outf;
return (outf != NULL);
}
return (outf != NULL);
return 1;
#else /* #ifndef KERNEL */
return 0;
#endif /* #ifndef KERNEL */

View File

@@ -484,9 +484,10 @@ gdbg_set_file(const char *name)
{
outf = fopen(name,"w"); // open up a new one
if (outf) gdbg_msgfile = outf;
return (outf != NULL);
}
return (outf != NULL);
return 1;
#else /* #ifndef KERNEL */
return 0;
#endif /* #ifndef KERNEL */

View File

@@ -565,9 +565,10 @@ gdbg_set_file(const char *name)
{
outf = fopen(name,"w"); // open up a new one
if (outf) gdbg_msgfile = outf;
return (outf != NULL);
}
return (outf != NULL);
return 1;
#else /* #ifndef KERNEL */
return 0;
#endif /* #ifndef KERNEL */