Print this page
10476 file(1) could be smatch clean

@@ -27,12 +27,10 @@
 /*        All Rights Reserved   */
 
 /*      Copyright (c) 1987, 1988 Microsoft Corporation  */
 /*        All Rights Reserved   */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>

@@ -241,11 +239,11 @@
                 ep = ep2;
         }
 
         /* mtab may have been allocated on a previous f_mkmtab call */
         if (mtab == (Entry *)NULL) {
-                if ((mtab = calloc(sizeof (Entry), NENT)) == NULL) {
+                if ((mtab = calloc(NENT, sizeof (Entry))) == NULL) {
                         int err = errno;
                         (void) fprintf(stderr, gettext("%s: malloc "
                             "failed: %s\n"), File, strerror(err));
                         return (-1);
                 }