]> diplodocus.org Git - nmh/blobdiff - h/fmt_scan.h
Fix invalid pointer arithmetic.
[nmh] / h / fmt_scan.h
index 4f14b65c48e0ecca889feb1356a1b50e9297ae22..2574c5798662be55d1dcfda32dc7dfe19caa7f6d 100644 (file)
@@ -205,7 +205,7 @@ void fmt_freecomptext(void);
  * or NULL if the component is not found in the hash table.
  */
 
-struct comp *fmt_findcomp(char *component);
+struct comp *fmt_findcomp(char *component) PURE;
 
 /*
  * Search for a component structure in the component hash table.
@@ -213,7 +213,7 @@ struct comp *fmt_findcomp(char *component);
  * Identical to fmd_findcomp(), but is case-INSENSITIVE.
  */
 
-struct comp *fmt_findcasecomp(char *component);
+struct comp *fmt_findcasecomp(char *component) PURE;
 
 /*
  * Add a component entry to the component hash table