From 7a5e1d54f183f40374e43003e978de3df29b4635 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 19 Sep 2024 12:12:17 +0300 Subject: [PATCH] Fix poptFreeContext() return type in the man page poptFreeContext() has returned explicit NULL since forever (at least popt 1.13, didn't bother checking earlier) --- popt.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/popt.3 b/popt.3 index 8b8f10f..39b07c9 100644 --- a/popt.3 +++ b/popt.3 @@ -12,7 +12,7 @@ popt \- Parse command line options .BI " const struct poptOption * " options , .BI " unsigned int " flags ); .sp -.BI "void poptFreeContext(poptContext " con ); +.BI "poptContext poptFreeContext(poptContext " con ); .sp .BI "void poptResetContext(poptContext " con ); .sp @@ -350,14 +350,14 @@ When argument processing is complete, the process should free the .BR poptContext " as it contains dynamically allocated components. The " .BR poptFreeContext() " function takes a " .BR poptContext " as its sole argument and frees the resources the " -context is using. +context is using. It always returns NULL for convenience. .sp .RB "Here are the prototypes of both " poptResetContext() " and " .BR poptFreeContext() : .sp .nf .B #include -.BI "void poptFreeContext(poptContext " con ");" +.BI "poptContext poptFreeContext(poptContext " con ");" .BI "void poptResetContext(poptContext " con ");" .fi .sp