summaryrefslogtreecommitdiffstats
path: root/lib/libpanel/p_user.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-01-12 23:21:58 +0000
committernicm <nicm@openbsd.org>2010-01-12 23:21:58 +0000
commit81d8c4e1e65ef590376b5b08744af794c42bd575 (patch)
tree7699ed6e10b41563ce3a6734235390cce070489c /lib/libpanel/p_user.c
parentsave errno wrapping in a signal handler (diff)
downloadwireguard-openbsd-81d8c4e1e65ef590376b5b08744af794c42bd575.tar.xz
wireguard-openbsd-81d8c4e1e65ef590376b5b08744af794c42bd575.zip
Update to ncurses 5.7, with local changes reapplied.
This is around eight years worth of changes (previously we were around ncurses 5.2), too many to list - many bug fixes and also a few new functions. A major bump for libcurses, libpanel, libform and libmenu. ok deraadt
Diffstat (limited to 'lib/libpanel/p_user.c')
-rw-r--r--lib/libpanel/p_user.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libpanel/p_user.c b/lib/libpanel/p_user.c
index bb4e692c455..357a8252d6e 100644
--- a/lib/libpanel/p_user.c
+++ b/lib/libpanel/p_user.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: p_user.c,v 1.3 2001/01/22 18:02:10 millert Exp $ */
+/* $OpenBSD: p_user.c,v 1.4 2010/01/12 23:22:08 nicm Exp $ */
/****************************************************************************
- * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2000,2005 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -38,21 +38,21 @@
*/
#include "panel.priv.h"
-MODULE_ID("$From: p_user.c,v 1.4 2000/12/10 02:20:44 tom Exp $")
+MODULE_ID("$Id: p_user.c,v 1.4 2010/01/12 23:22:08 nicm Exp $")
NCURSES_EXPORT(int)
-set_panel_userptr
-(PANEL *pan, NCURSES_CONST void *uptr)
+set_panel_userptr(PANEL * pan, NCURSES_CONST void *uptr)
{
- if(!pan)
- return(ERR);
+ T((T_CALLED("set_panel_userptr(%p,%p)"), pan, uptr));
+ if (!pan)
+ returnCode(ERR);
pan->user = uptr;
- return(OK);
+ returnCode(OK);
}
-NCURSES_EXPORT(NCURSES_CONST void*)
-panel_userptr (const PANEL *pan)
+NCURSES_EXPORT(NCURSES_CONST void *)
+panel_userptr(const PANEL * pan)
{
- return(pan ? pan->user : (NCURSES_CONST void *)0);
+ T((T_CALLED("panel_userptr(%p)"), pan));
+ returnCVoidPtr(pan ? pan->user : (NCURSES_CONST void *)0);
}
-