]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Inappropriate code style for Intel MPX at argp/argp-help.c. Fixed.
authorLiubov Dmitrieva <liubov.dmitrieva@intel.com>
Thu, 20 Dec 2012 14:23:10 +0000 (18:23 +0400)
committerLiubov Dmitrieva <ldmitrie@sourceware.org>
Wed, 23 Oct 2013 15:07:36 +0000 (19:07 +0400)
argp/argp-help.c

index ace71b48c2c725e16e512c54dec3139e19c8ce83..80547859b3d052fc6450175a095aec54a82678c1 100644 (file)
@@ -867,7 +867,10 @@ hol_append (struct hol *hol, struct hol *more)
 
          /* Fix up the short options pointers from HOL.  */
          for (e = entries, left = hol->num_entries; left > 0; e++, left--)
-           e->short_options += (short_options - hol->short_options);
+          {
+            unsigned long offset = e->short_options - hol->short_options;
+                 e->short_options = (char *)(short_options + offset);
+               }
 
          /* Now add the short options from MORE, fixing up its entries
             too.  */