Displaying 20 results from an estimated 87 matches for "__unused".
2004 Jan 06
3
[Bug 783] __unused nit
http://bugzilla.mindrot.org/show_bug.cgi?id=783
Summary: __unused nit
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: PAM support
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: des...
2015 Mar 03
2
openssh-SNAP-20150304 issues
...In function `test_data_file':
>> regress/unittests/test_helper/test_helper.c:177: warning: implicit declaration of function `strlcpy'
>> regress/unittests/test_helper/test_helper.c: At top level:
>> regress/unittests/test_helper/test_helper.c:196: parse error before "__unused"
>> *** Error code 1
> Could you try this?
>
> diff --git a/defines.h b/defines.h
> index fa0ccba..cf65901 100644
> --- a/defines.h
> +++ b/defines.h
> @@ -850,4 +850,8 @@ struct winsize {
> # endif /* gcc version */
> #endif /* __predict_true */
>
&g...
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
...uot;, output_buffer);
memset(buffer, 0, sizeof(buffer));
if (flush)
return;
diff --git a/com32/hdt/hdt-cli-kernel.c b/com32/hdt/hdt-cli-kernel.c
index d4946f3..f64771b 100644
--- a/com32/hdt/hdt-cli-kernel.c
+++ b/com32/hdt/hdt-cli-kernel.c
@@ -83,7 +83,7 @@ void main_show_kernel(int argc __unused, char **argv __unused,
}
if (found == true) {
strncat(buffer, "\n", 1);
- more_printf(buffer);
+ more_printf("%s", buffer);
}
}
diff --git a/com32/hdt/hdt-cli-pci.c b/com32/hdt/hdt-cli-pci.c
index c86a792..e0b7830 100644
--- a/com32/hdt/hdt-cli-pci.c
+++ b/com...
2019 Jan 18
0
[klibc:master] mips64: remove __unused from __jmp_buf
...libs/klibc/klibc.git;a=commit;h=8b15382a33823d38599347e90022abfcdc70fc68
Author: James Cowgill <james.cowgill at mips.com>
AuthorDate: Fri, 2 Mar 2018 08:36:45 -0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Wed, 2 Jan 2019 03:08:04 +0000
[klibc] mips64: remove __unused from __jmp_buf
This field is not needed. Probably it was copied straight from the
32-bit mips __jmp_buf.
Signed-off-by: James Cowgill <james.cowgill at mips.com>
Link: https://www.zytor.com/pipermail/klibc/2018-March/003984.html
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
-...
2012 May 04
3
[GIT PULL] elflink fixes
...{
- printf("\n");
- continue;
- }
printf("\n");
+ /* return if user only press enter or we timed out */
+ if (!cmdline || cmdline[0] == '\0')
+ return;
+
load_kernel(cmdline);
}
}
@@ -226,6 +228,7 @@ static void enter_cmdline(void)
int main(int argc __unused, char **argv __unused)
{
const void *adv;
+ const char *cmdline;
size_t count = 0;
char *config_argv[2] = { NULL, NULL };
@@ -242,7 +245,6 @@ int main(int argc __unused, char **argv __unused)
* We apparently have a boot-once set; clear it and
* then execute the boot-once.
*/
-...
2012 Sep 04
0
[PATCH] console: Close stdin, stdout, stderr on ldlinux.c32 unload
...2/elflink/ldlinux/ldlinux.c
+++ b/com32/elflink/ldlinux/ldlinux.c
@@ -252,6 +252,18 @@ cmdline:
goto auto_boot;
}
+
+/*
+ * Undo the work we did in openconsole().
+ */
+static void __destructor close_console(void)
+{
+ int i;
+
+ for (i = 0; i <= 2; i++)
+ close(i);
+}
+
int main(int argc __unused, char **argv __unused)
{
const void *adv;
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index 5d270a4..fc5defc 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -170,7 +170,7 @@ CORELIBOBJS = \
sprintf.o strlcat.o strchr.o strlcpy.o strncasecmp.o ctypes.o \
fputs.o fwrite2....
2015 Mar 03
2
openssh-SNAP-20150304 issues
.../test_helper/test_helper.c: In function `test_data_file':
regress/unittests/test_helper/test_helper.c:177: warning: implicit declaration of function `strlcpy'
regress/unittests/test_helper/test_helper.c: At top level:
regress/unittests/test_helper/test_helper.c:196: parse error before "__unused"
*** Error code 1
Stop.
doctor.nl2k.ab.ca//usr/source/openssh-SNAP-20150304$ less regress/unittests/test
_helper/test_helper.c
[?1h=[67;1H[K/* $OpenBSD: test_helper.c,v 1.5 2015/02/16 22:20:50 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller <djm at mindrot.org>
*
* Permi...
2014 Nov 22
1
Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
...(address, NULL, 16);
x->entry[x->entry_count] = pointed_address;
diff --git a/com32/hdt/hdt-cli-memory.c b/com32/hdt/hdt-cli-memory.c
index c05b7cd..7d0342c 100644
--- a/com32/hdt/hdt-cli-memory.c
+++ b/com32/hdt/hdt-cli-memory.c
@@ -47,7 +47,7 @@ static void show_memory_e820(int argc __unused, char **argv __unused,
more_printf("BIOS-provided physical RAM e820 map:\n");
for (int i = 0; i < count; i++) {
get_type(map[i].type, type, 14);
- more_printf("%016llx - %016llx %016llx (%s)\n",
+ more_printf("%016" PRIx64 " - %016" PRIx64 &quo...
2012 May 23
1
[GIT PULL] Remove duplicate COM32 modules
...le that sorts a couple of numbers
- *
- * Created on: Aug 11, 2008
- * Author: Stefan Bucur <stefanb at zytor.com>
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "sort.h"
-
-#define NUM_COUNT 10
-#define MAX_NUM 100
-
-int main(int argc __unused, char **argv __unused)
-{
- int *nums = NULL;
-
- nums = malloc(NUM_COUNT * sizeof(int));
- printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&main, nums);
-
- free(nums);
-
- return 0;
-}
diff --git a/com32/samples/hello.c b/com32/samples/hello.c
in...
2007 Sep 08
4
[PATCH] Unified shutdown code
...iff -r a53aaea4c698 -r a85c4081738a xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c Fri Sep 07 19:54:29 2007 +0100
+++ b/xen/arch/ia64/xen/domain.c Fri Sep 07 17:37:01 2007 -0700
@@ -1486,7 +1486,7 @@ int __init construct_dom0(struct domain
return 0;
}
-void machine_restart(char * __unused)
+void machine_restart(int __unused)
{
console_start_sync();
if (running_on_sim)
diff -r a53aaea4c698 -r a85c4081738a xen/arch/powerpc/domain.c
--- a/xen/arch/powerpc/domain.c Fri Sep 07 19:54:29 2007 +0100
+++ b/xen/arch/powerpc/domain.c Fri Sep 07 17:37:01 2007 -0700
@@ -119,7 +119,7 @@ void...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...x up compiler warnings
elflink: Delete obsolete constructor code
elflink: Allocate space for 'realname'
fs: Include header for close() prototype
fs: Include unistd.h for chdir() prototype
elflink: Remove unused variables
Mark unused function parameters as __unused
Merge branches 'auto-extension' and 'fix-build-warnings' into elflink
com32/elflink/ldlinux/adv.c | 2 +-
com32/elflink/ldlinux/cli.c | 4 +-
com32/elflink/ldlinux/config.h | 4 +
com32/elflink/ldlinux/eprintf.c | 1 +
com32/elfli...
2007 Jul 25
3
Patch accurate packet scheduling for ATM/ADSL
...hed.h (in the include/linux/ directories
of iproute package and the kernel source) :
struct tc_ratespec
{
unsigned char cell_log;
unsigned char __reserved;
unsigned short feature; /* Always 0 in pre-atm patch kernels */
- char cell_align; /* Always 0 in pre-atm patch kernels */
- unsigned char __unused;
+ short cell_align; /* Always 0 in pre-atm patch kernels */
unsigned short mpu;
__u32 rate;
};
The results are much better and with my tests, it works very nicely.
If it can help someone,
Edouard.
2015 Oct 07
2
Hyper-V Gen 2 waiting for ldlinux.e64
On Wed, Oct 07, 2015 at 05:58:51PM -0500, Clements, James wrote:
> James Clement
> > Geert Stappers
> > > On Wed, Oct 07, 2015 at 05:06:41PM -0500, Clements, James wrote:
> > > > The screen displays the following:
> > > >
> > > > PXE Network Boot using IPv4
> > > > ....
> > > > Station IP address is 192.168.205.50
2012 Oct 19
3
[PATCH 0/3] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
The first two patches in this series are fixes for bugs reported by
someone in #syslinux. The third makes dmitest.c32 actually wait for
user input.
If no one has any objections/concerns, I'll pull this into the
official elflink branch.
Matt Fleming (3):
core: Print error message if we don't load ldlinux.c32
Clean up $(GPLLIB) leak
2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
...x.c
+++ b/com32/elflink/ldlinux/ldlinux.c
@@ -31,6 +31,8 @@ static const struct file_ext file_extensions[] = {
{ NULL, 0 },
};
+jmp_buf __return_to_command_prompt;
+
/*
* Return a pointer to one byte after the last character of the
* command.
@@ -302,6 +304,7 @@ __export int main(int argc __unused, char **argv)
const void *adv;
const char *cmdline;
size_t count = 0;
+ int retval;
ldlinux_console_init();
@@ -333,16 +336,25 @@ __export int main(int argc __unused, char **argv)
if (!syslinux_setadv(ADV_BOOTONCE, 0, NULL))
syslinux_adv_write();
- load_kernel(cmdline); /* Sho...
2006 Aug 07
0
[PATCH][LINUX] use machine_emergency_restart() from the
...de <asm/emergency-restart.h>
#include <xen/evtchn.h>
#include <asm/hypervisor.h>
#include <xen/interface/dom0_ops.h>
@@ -39,16 +40,11 @@ extern void ctrl_alt_del(void);
*/
#define SHUTDOWN_HALT 4
-void machine_emergency_restart(void)
+void machine_restart(char * __unused)
{
/* We really want to get pending console data out before we die. */
xencons_force_flush();
HYPERVISOR_shutdown(SHUTDOWN_reboot);
-}
-
-void machine_restart(char * __unused)
-{
- machine_emergency_restart();
}
void machine_halt(void)
_______________________________________________
Xen...
2015 Feb 10
0
[PATCH 4/6] hdt: fix sizeof(char *) misuse
...++++++++++++++++++++++++------------------------
1 file changed, 89 insertions(+), 89 deletions(-)
diff --git a/com32/hdt/hdt-cli-cpu.c b/com32/hdt/hdt-cli-cpu.c
index 6d764ce..660a90b 100644
--- a/com32/hdt/hdt-cli-cpu.c
+++ b/com32/hdt/hdt-cli-cpu.c
@@ -74,7 +74,7 @@ void main_show_cpu(int argc __unused, char **argv __unused,
/* Let's compute the cpu flags display
* We have to maximize the number of flags per line */
-static void show_flag(char *buffer, bool flag, char *flag_name, bool flush)
+static void show_flag(char *buffer, size_t len, bool flag, char *flag_name, bool flush)
{...
2015 Oct 13
5
[PATCH 0/2] Stack overflows when running commands
From: Sylvain Gault <sylvain.gault at gmail.com>
Hello there,
I propose 2 patches that fix two possible stack overflows either when running a
COM32 module or when loading a new config file.
I didn't find a better way to do this than to use the infamous setjmp/longjmp
functions to restore the stack to a previous state. This makes the logic a bit
more complex, but the behavior is not
2015 Jul 03
4
boot... round 2
Hi,
Adam Williamson
> I think it would be better if someone else confirms there's actually
> something to fix.
There was indeed the shortcomming that byte values 128 to 255
were treated as whitespace and mapped to "_" resp. "".
This would affect non-ASCII characters of UTF-8 or old
ISO-8859.
But the reason why gcc 5 made a difference to gcc 4.9
is not found yet.
2018 Mar 02
5
[PATCH 0/5] Various MIPS fixes
...first patch is the important
one.
Thanks,
James
*** BLURB HERE ***
James Cowgill (5):
mips64: compile with -mno-abicalls
mips: use -Ttext-segment when linking shared library
mips/mips64: simplify crt0 code
mips: don't save floating point registers in setjmp / longjmp
mips64: remove __unused from __jmp_buf
usr/include/arch/mips/klibc/archsetjmp.h | 14 --
usr/include/arch/mips64/klibc/archsetjmp.h | 1 -
usr/klibc/arch/mips/MCONFIG | 7 +-
usr/klibc/arch/mips/crt0.S | 13 +-
usr/klibc/arch/mips/klibc.ld | 214 ----------------------...