Skip to content

Commit

Permalink
helper: nvp: minor fixes
Browse files Browse the repository at this point in the history
Fix incorrect reference for original file.
Fix copy-paste example.

Change-Id: I1ea7909ca241611122f93ca11a4c94c97674b430
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8037
Tested-by: jenkins
Reviewed-by: Henrik Nordström <[email protected]>
  • Loading branch information
borneoa committed Dec 16, 2023
1 parent 49348f1 commit d3d287b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/helper/nvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Copyright 2009 David Brownell
* Copyright (c) 2005-2011 Jim Tcl Project. All rights reserved.
*
* This file is extracted from jim_nvp.c, originally part of jim TCL code.
* This file is extracted from jim-nvp.c, originally part of jim TCL code.
*/

#ifdef HAVE_CONFIG_H
Expand Down
4 changes: 2 additions & 2 deletions src/helper/nvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Copyright 2009 David Brownell
* Copyright (c) 2005-2011 Jim Tcl Project. All rights reserved.
*
* This file is extracted from jim_nvp.h, originally part of jim TCL code.
* This file is extracted from jim-nvp.h, originally part of jim TCL code.
*/

#ifndef OPENOCD_HELPER_NVP_H
Expand Down Expand Up @@ -51,7 +51,7 @@
* returns &yn[0];
* result = nvp_name2value(yn, "no");
* returns &yn[1];
* result = jim_nvp_name2value(yn, "Blah");
* result = nvp_name2value(yn, "Blah");
* returns &yn[4];
* \endcode
*
Expand Down

0 comments on commit d3d287b

Please sign in to comment.